diff --git a/b_asic/GUI/main_window.py b/b_asic/GUI/main_window.py index 1fa80a41874910a13a785f65ec48b02885f6100a..698621d40e81e17e098cf278a6baea83799b13f7 100644 --- a/b_asic/GUI/main_window.py +++ b/b_asic/GUI/main_window.py @@ -979,6 +979,7 @@ def start_editor(sfg: Optional[SFG] = None) -> Dict[str, SFG]: All SFGs currently in the editor. """ if not QApplication.instance(): + QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) app = QApplication(sys.argv) else: app = QApplication.instance() diff --git a/b_asic/gui_utils/plot_window.py b/b_asic/gui_utils/plot_window.py index 28602c3ff20f53a20cb8c0752bc3bbb75e899603..5322debf03ee338d3fcb5860f706c7517976d248 100644 --- a/b_asic/gui_utils/plot_window.py +++ b/b_asic/gui_utils/plot_window.py @@ -251,6 +251,7 @@ def start_simulation_dialog( The name of the SFG. """ if not QApplication.instance(): + QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) app = QApplication(sys.argv) else: app = QApplication.instance() diff --git a/b_asic/scheduler_gui/main_window.py b/b_asic/scheduler_gui/main_window.py index 437dc0098f5f66ab83d2bbfa7490561392d93b62..d2ef99b6fc6f60a0533eb9c0490aa7bbfb354a25 100644 --- a/b_asic/scheduler_gui/main_window.py +++ b/b_asic/scheduler_gui/main_window.py @@ -1021,6 +1021,7 @@ def start_scheduler(schedule: Optional[Schedule] = None) -> Schedule: The edited schedule. """ if not QApplication.instance(): + QApplication.setAttribute(Qt.AA_EnableHighDpiScaling) app = QApplication(sys.argv) else: app = QApplication.instance()