mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use scale factor
This commit is contained in:
parent
1e21778ab8
commit
493c22c253
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,10 @@ def open_dialog():
|
|||
from Qt import QtWidgets
|
||||
from .install_dialog import InstallDialog
|
||||
|
||||
scale_attr = getattr(QtCore.Qt, "AA_EnableHighDpiScaling", None)
|
||||
if scale_attr is not None:
|
||||
QtWidgets.QApplication.setAttribute(scale_attr)
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
|
||||
d = InstallDialog()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue