Skip to content

Commit 8f13d40

Browse files
Enable high dpi scaling in QT App settings
Set the QT attribute Qt::AA_EnableHighDpiScaling which corrects a blinking gui bug in Ubuntu 22.04
1 parent 042d690 commit 8f13d40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ int main(int argc, char* argv[])
136136
QCoreApplication::setApplicationVersion(APP_VERSION);
137137
QCoreApplication::setApplicationName(QStringLiteral("flameshot"));
138138
QCoreApplication::setOrganizationName(QStringLiteral("flameshot"));
139+
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
139140

140141
// no arguments, just launch Flameshot
141142
if (argc == 1) {

0 commit comments

Comments
 (0)