mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
do not override scale factor rounding policy if has defined value through env variable
This commit is contained in:
parent
d047d8dfb7
commit
5de86cb6df
1 changed files with 6 additions and 2 deletions
|
|
@ -170,8 +170,12 @@ def get_openpype_qt_app():
|
|||
if attr is not None:
|
||||
QtWidgets.QApplication.setAttribute(attr)
|
||||
|
||||
if hasattr(
|
||||
QtWidgets.QApplication, "setHighDpiScaleFactorRoundingPolicy"
|
||||
policy = os.getenv("QT_SCALE_FACTOR_ROUNDING_POLICY")
|
||||
if (
|
||||
hasattr(
|
||||
QtWidgets.QApplication, "setHighDpiScaleFactorRoundingPolicy"
|
||||
)
|
||||
and not policy
|
||||
):
|
||||
QtWidgets.QApplication.setHighDpiScaleFactorRoundingPolicy(
|
||||
QtCore.Qt.HighDpiScaleFactorRoundingPolicy.PassThrough
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue