自适应屏幕缩放

Signed-off-by: fong <wuwenfengmi@outlook.com>
This commit is contained in:
fong
2024-02-24 18:37:54 +08:00
parent f5fdd4608f
commit bf9c89dfb0
+2
View File
@@ -241,6 +241,8 @@
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
//qputenv("QT_SCALE_FACTOR", "2");
QApplication a(argc, argv);
Widget w;
w.show();