Skip to content
Snippets Groups Projects
Commit 15482098 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Fix HiDPI issues

parent 2c217489
No related branches found
No related tags found
No related merge requests found
Pipeline #104080 failed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment