-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Corrupted icons with PyQt 5.12 #113
Comments
This is a problem with PyQt5 5.12 and we don't know how to fix it yet. So please downgrade to 5.11 in the meantime. |
Thanks a lot, that fixed it. |
an alternative is to switch to Spyder2 theme, instead of downgrading. |
Can this be reopened until the issue with pyqt 5.12 is resolved? |
Pyqt5 mailing list reference: https://www.riverbankcomputing.com/pipermail/pyqt/2019-February/041376.html |
Just a note: if I put some prints into qtawesome/qtawesome/iconic_font.py Lines 145 to 163 in 364d6fd
I can see that We are using qtawesome in our own project (thanks for the great library btw), so unfortunately switching to Spyder2 theme is not an option. |
Thanks for digging into this! Did you try it? @goanpeca, what do you think? |
Just tried on a machine with pyqt 5.11 installed, and I here can see that both diff --git a/qtawesome/iconic_font.py b/qtawesome/iconic_font.py
index 0fb2896..727a557 100644
--- a/qtawesome/iconic_font.py
+++ b/qtawesome/iconic_font.py
@@ -147,16 +147,19 @@ class CharIconEngine(QIconEngine):
"""Specialization of QIconEngine used to draw font-based icons."""
def __init__(self, iconic, painter, options):
+ print('init')
super(CharIconEngine, self).__init__()
self.iconic = iconic
self.painter = painter
self.options = options
def paint(self, painter, rect, mode, state):
+ print('paint')
self.painter.paint(
self.iconic, painter, rect, mode, state, self.options)
def pixmap(self, size, mode, state):
+ print('pixmap')
pm = QPixmap(size)
pm.fill(Qt.transparent)
self.paint(QPainter(pm), QRect(QPoint(0, 0), size), mode, state) I called |
I would need to look deeper into this, I don't recall working on that side, was more @SylvainCorlay I believe :-p |
Hey, I had some issues with a corrupted windows profile, and after restoring it for some reason I can't get QtAwesome to show icons anymore. I did do a pip uninstall and install of qtawesome again. Normal QIcon are fine. Not sure on the technical side of this or how it could at all be connected, but I can't figure it out for the life of me.
Icons are being added normally as
The text was updated successfully, but these errors were encountered: