-
-
Notifications
You must be signed in to change notification settings - Fork 246
This problem causes the button icon not to switch automatically #94
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
Comments
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)) 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? |
Update your custom Widgets module
…On Tue, Mar 5, 2024, 1:34 AM Shannon Porter ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATSYXNI46KLIRQOIABEQIC3YWTZHXAVCNFSM6AAAAABDLPTNL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGU4DMMBWGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: <KhamisiKibet/QT-PyQt-PySide-Custom-Widgets/issues/94/1977586065@
github.com>
|
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. |
AttributeError: 'PySide2.QtWidgets.QPushButton' object has no attribute 'setNewIcon'
This problem causes the button icon not to switch automatically
The text was updated successfully, but these errors were encountered: