添加高分屏自适应

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

@@ -230,6 +230,7 @@ class Analysis(QWidget):
build_html.html_build(self._save_path,self.titles,ret_values)
# 运行程序
if __name__ == '__main__':
QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_EnableHighDpiScaling)
app = QApplication(sys.argv)
main_window = Analysis()
main_window.show()