mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
do not enable HighDpiScaling from QT
This commit is contained in:
parent
553b2b08a3
commit
bd16ae27c0
@ -131,7 +131,10 @@ int main(int argc, char *argv[])
|
|||||||
// Or set environment QT_OPENGL to "angle/desktop/software".
|
// Or set environment QT_OPENGL to "angle/desktop/software".
|
||||||
// QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
|
// QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
||||||
|
// This only takes effect on Win, X11 and Android.
|
||||||
|
// It will disturb original scaling. Just disable it for now.
|
||||||
|
// QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user