Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
do not override scale factor rounding policy if has defined value thr…
Browse files Browse the repository at this point in the history
…ough env variable
  • Loading branch information
iLLiCiTiT committed Sep 1, 2023
1 parent d047d8d commit 5de86cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openpype/tools/utils/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5de86cb

Please sign in to comment.