-
Notifications
You must be signed in to change notification settings - Fork 730
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
Problem with QComboBox with icons in it -- on macOS #169
Comments
Yes!, I can, sorry I forgot about this. Thanks for the ping |
Working on this now :-p |
So @cculianu QComboBox has a problem with QSS (I have read it somewhere but do not have the link handy) So basically the implementation of the item delegate of the QComboBox Listview uses So the only general solution I see for this, is to do cb.setItemDelegate(QStyledItemDelegate(cb)) I have tried many iterations and I do not see a solution for this :-| So it seems we will have to provide some patched widgets to offer users solutions for known issues like the |
@dpizetta it seems we either use the Either way, users will need to patch something (minimum widths, or setting the delegate) |
Since you say it's a bug in Qt basically I'm ok with either you guys closing this issue or re-labeling it as a Qt bug (perhaps there is value in keeping it open?). Thanks so much for the research and hard work on it -- and for finding the workaround. For my uses, the workaround is good enough. |
Thanks for the help and the workaround! :) |
@dpizetta sure, Now between these two options what do you prefer our users have to deal with?
|
@goanpeca, I'm more comfortable with the second option. Tks |
@goanpeca could you add this issue to known-issues and/or insert the patch in the code? Tks :) I think this is the last one to the release :) |
@ccordoba12 I have been struggling all morning with this issue. I found: https://bugreports.qt.io/browse/QTBUG-30282 |
Ok I found a solution. Seems to be a persistent problem on Mac. I will open a PR for the suggested fix to this issue |
Thank you @goanpeca ! |
Also, may we need to add to your example another combo box (editable/non-editable) with icons to keep comparison. Can you do it or would you like me to add those? |
Haha I just told you this over the PR on spyder. I think we could have a combobox that mixes items with and without icons? instead of a combobox with only icons and one without icons? Could you do this? I tried to open the ui files and I got some error with QtDesigner |
Heheh, yeap, almost an identical sentence hehehe.
Ok, nice. I do it :) |
This fixes the problem with tab-bar scroll buttons reported in #1968 This version has a problem with combo-boxes with icons, so the recommended workaround is implemented for the language combo-box in Preferences and the Table combo-box in Browse Data. ColinDuquesnoy/QDarkStyleSheet#169
This fixes the problem with tab-bar scroll buttons reported in #1968 This version has a problem with combo-boxes with icons, so the recommended workaround is implemented for the language combo-box in Preferences and the Table combo-box in Browse Data. ColinDuquesnoy/QDarkStyleSheet#169
QStyledItemDelegate is needed due to ColinDuquesnoy/QDarkStyleSheet#169
Describe Your Environment
Please, report the output of the command (from v2.6+) or fill the information below:
- PyQt: 5.11.3
Language
Python
Description / Steps to Reproduce [if necessary]
[Description of the issue]
Actual Result
It looks all mushed.
Expected Results / Proposed Result
For it to not look mushed.
Relevant Code [if necessary]
The text was updated successfully, but these errors were encountered: