hidpi force auto
This commit is contained in:
parent
7d7ee4140d
commit
54244f9963
@ -21,6 +21,9 @@ extern void disableWindowTabbing();
|
|||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
qSetMessagePattern(QSL("time=\"%{time process}\" type=\"%{type}\" -> %{message}"));
|
qSetMessagePattern(QSL("time=\"%{time process}\" type=\"%{type}\" -> %{message}"));
|
||||||
|
|
||||||
|
// High DPI stuff.
|
||||||
|
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
|
||||||
|
|
||||||
#if QT_VERSION_MAJOR <= 5
|
#if QT_VERSION_MAJOR <= 5
|
||||||
QApplication::setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
|
QApplication::setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
|
||||||
QApplication::setAttribute(Qt::ApplicationAttribute::AA_EnableHighDpiScaling);
|
QApplication::setAttribute(Qt::ApplicationAttribute::AA_EnableHighDpiScaling);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user