Trying to run icepaposc with pyqt 5.12.3 raises the following exception:
Traceback (most recent call last):
File "/opt/conda/envs/icepap_client/lib/python3.9/site-packages/icepaposc/custom_widgets/square_radiobtn.py", line 26, in paintEvent
opt = QtGui.QStyleOptionButton()
AttributeError: module 'PyQt5.QtGui' has no attribute 'QStyleOptionButton'
QStyleOptionButton should be imported from QtWidgets.
Same for QStyle.
I did a test with pyqt 5.6 and I could import QStyleOptionButton both from QtGui and QtWidgets modules.
My understanding is that importing this from the QtGui module was deprecated and removed in recent pyqt releases.
I couldn't find a PyQt5 changelog to confirm that.
Trying to run
icepaposc
with pyqt 5.12.3 raises the following exception:QStyleOptionButton
should be imported fromQtWidgets
. Same forQStyle
.I did a test with pyqt 5.6 and I could import
QStyleOptionButton
both fromQtGui
andQtWidgets
modules. My understanding is that importing this from theQtGui
module was deprecated and removed in recent pyqt releases. I couldn't find a PyQt5 changelog to confirm that.I'll make the adequate MR.