This problem causes the button icon not to switch automatically
newboykong opened this issue · 3 comments
AttributeError: 'PySide2.QtWidgets.QPushButton' object has no attribute 'setNewIcon'
This problem causes the button icon not to switch automatically
I am running through the video how too and I'm getting the same issue, where a "QPushButton" outside the "QCustomSlideMenu" that is being changed by the "QCustomSlideMenu" code in the style.json file is having this error returned;
self.targetBtn.setNewIcon(QtGui.QIcon(self.targetBtn.menuCollapsedIcon))
AttributeError: 'PySide6.QtWidgets.QPushButton' object has no attribute 'setNewIcon'
There are 2 different selections of the demo video that has this issue. Is this me, or is it a bug? Has anyone found a fix for this yet, or am I missing something?
Well that worked... I thought I was running on the latest version as I only installed it 5 days ago, but apparently I was wrong.
Thank you for the quick reply.