Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This problem causes the button icon not to switch automatically #94

Open
newboykong opened this issue Feb 16, 2024 · 3 comments
Open

This problem causes the button icon not to switch automatically #94

newboykong opened this issue Feb 16, 2024 · 3 comments

Comments

@newboykong
Copy link

AttributeError: 'PySide2.QtWidgets.QPushButton' object has no attribute 'setNewIcon'
This problem causes the button icon not to switch automatically

@ShannonPorter
Copy link

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?

@KhamisiKibet
Copy link
Owner

KhamisiKibet commented Mar 4, 2024 via email

@ShannonPorter
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants