添加高分屏自适应

This commit is contained in:
2023-11-06 23:34:20 +08:00
parent fb3334d844
commit 4671f6220e
3 changed files with 20 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ QListView {
show-decoration-selected: 1;
}
QWidget {
font-size: 16px;
}
"""
@@ -56,6 +60,7 @@ class updata_dlg(QWidget):
if __name__ == "__main__":
QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
app = QApplication(sys.argv)
dlg=updata_dlg()
dlg.show()