strange behaviour in hight DPI resolution
-
Hello, I use PySide2 version 5.15.2.1
When I ran the app on hight dpi resolution the app open but I can't do anything. I have a strange cursor that not click.PS : I have added lignes for scale :
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)Thank you in advence !
-
Hi and welcome to devnet,
What kind of device is that ?
Which OS are you running ? -
Do you have the same issue with PySide6 ?
-
I didn't try with pyside6. The project is heavy this will teak time to port it.
-
Before doing such a port, you could try with a dummy application that exhibits this behaviour.
Note that the port should mostly be straightforward. It was one of the goal of Qt 6: to be a "boring" upgrade.
-
@SGaist said in strange behaviour in hight DPI resolution:
Before doing such a port, you could try with a dummy application that exhibits this behaviour.
Note that the port should mostly be straightforward. It was one of the goal of Qt 6: to be a "boring" upgrade.
Yes you are right @SGaist I will do. Thanks a lot !
-
Hello,
I found the problem. It's because I use qtwinextra to custumize the window control bar.
The problem is solved.
-
Glad you found out !
What did you do to fix it ?
-
@SGaist Nothing sepacial, back to normal windows control bar.
Now I have to find away to control the bar color.
Any idea please ? I read that this can be done using win32api but I don't find yet how to implement this using python/pyside.Thank you
-
I haven't used it but maybe the pywin32 module might allow to do that.