Unsolved Why my QPushButtons are disable on Mac OS X whereas they are enable on Windows?
-
Hi,
Thanks for helping me.
I use the PyQt5 5.15.0
Your bug report link give me error message: DNS_PROBE_FINISHED_NXDOMAIN
-
Sorry ! Linked fix
-
@SGaist said in Why my QPushButtons are disable on Mac OS X whereas they are enable on Windows?:
stylesheets
Thank you.
I had a look and may have found some bugs corresponding to mine.
But many of them don't concern the 5.15.0 version
And even if I found one for the 5.15.0, I didn't see where was the solution.I am so sorry to bother you, I am a newbie, Could you guide me to the solution, please?
-
Did you try the stylesheet removal I suggested ?
-
Yes it works without the stylesheet. Thank you so much for your help.
But now I have another problem. I can't change the color of my buttons. DO you have any idea how long it will take to fix this bug?
-
In fact the bug is not only for setstylesheet, but also for setEnabled.
Obviously, on MAC OS X, QT5 can't change the attributes of buttons.You can reproduce the bug with the code I published here.
I hope you could fix this issue soon.
Thanks again for your help.
-
Hi @CentreFF
There is a similar bug in Pyside 2 (Qt for Python) in the default macOS style plugin: https://bugreports.qt.io/browse/PYSIDE-695
The workaround in the report was to call
app.setStyle('Fusion')
in__main__
before you construct your window. Could you please test to see if it works for you? -
This is a regression bug in Qt 5.15.0. The next release will be fine. That means that the easiest solution to your problem is to use an earlier version of Qt (I personally did go back to 5.13.2 as this is the version we are using on other platforms anyway). This solution has worked well for us.
-
@SimonSchroeder said in Why my QPushButtons are disable on Mac OS X whereas they are enable on Windows?:
This is a regression bug in Qt 5.15.0. The next release will be fine. That means that the easiest solution to your problem is to use an earlier version of Qt (I personally did go back to 5.13.2 as this is the version we are using on other platforms anyway). This solution has worked well for us.
Thanks, @SimonSchroeder. Do you have a link to the regression report or the fix?
-
https://bugreports.qt.io/browse/QTBUG-85487
It says that it is closed and fix version is 5.15.1.