Skip to content

Commit 3541edb

Browse files
committed
compatible high dpi
1 parent 0888416 commit 3541edb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def __init__(self):
135135

136136

137137
if __name__ == '__main__':
138+
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
138139
app = QtWidgets.QApplication([])
139140

140141
# create node graph.

example_auto_nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def get_published_nodes_from_folder(folder_path):
4747

4848

4949
if __name__ == '__main__':
50+
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
5051
app = QtWidgets.QApplication()
5152

5253
# create node graph.

example_math_nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
if __name__ == '__main__':
11+
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
1112
app = QtWidgets.QApplication([])
1213

1314
# create node graph.

0 commit comments

Comments
 (0)