Pyside2 and high dpi scaling

Pyside2 and high dpi scaling

Craig_Lamorte
Advocate Advocate
1,019 Views
0 Replies
Message 1 of 1

Pyside2 and high dpi scaling

Craig_Lamorte
Advocate
Advocate

Hi,

 

Ive run into an issue on any custom pyside UIs in maya in which the UI gets squished whenever the windows scaling is set to anything 150% or above.  I've tried looking up this issue, so far i've seen people say to try this -

QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)

That did not work though.  Anyone know any solutions to these scaling issues? 

0 Likes
1,020 Views
0 Replies
Replies (0)