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

Warning defoult CloseIcon Modals #100

Closed
deathnoragami opened this issue Apr 4, 2024 · 1 comment
Closed

Warning defoult CloseIcon Modals #100

deathnoragami opened this issue Apr 4, 2024 · 1 comment

Comments

@deathnoragami
Copy link

error in file QCustomModals.py
if a person does not choose an icon, he will receive such an error setIcon(self, icon: QIcon): argument 1 has unexpected type 'QPixmap'
need to change the line 56, 57
on

self.closeIcon = self.style().standardIcon(QStyle.StandardPixmap.SP_TitleBarCloseButton).pixmap(QSize(32, 32))
self.closeButton.setIcon(QIcon(self.closeIcon))

GL.

@KhamisiKibet
Copy link
Owner

Solved

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

2 participants