-
Notifications
You must be signed in to change notification settings - Fork 36
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
[Proposal] QCheckComboBox #89
Comments
Hi @MosGeo, I think this could be a nice addition.
superqt doesn't really have "defaults" per se, it's just a collection of things that libraries can use. It would be fine to add a new widget called I have to admit I also find the combo/dropdown UI to be a bit unusual. I think personally I would probably aim for a group of checkboxes (not in a dropdown combobox... though perhaps in a scroll area or your QCollapsible if there are a ton of options). But, as long as this is just a new widget that someone can use if they want to, I wouldn't mind having it in here! |
ohhh sorry... on rereading now, I realize you were say "because the default combobox ..." 😂 Nevermind my comments about "defaults" ... second paragraph stands though :) |
I will clean up the code, write tests, and make a draft PR. I just wanted to make sure that it is of interest as every line of code is possible bug waiting to happen in a library, e.g., I see that you fixed quite a few items in QCollapsible :) |
one nice thing about this library is that the parts aren't terribly interconnected. So adding a new (relatively isolated) widget along with some tests is pretty low risk. If someone finds a bug, it at least means they're interested in the widget, and we can fix it as we go :) |
I propose the inclusion of a custom widget for check combobox. This is useful in some scenarios (e.g., select multiple samples). If there is interest, I will clean up my current code, add tests and create an initial pull request for it.
I think it deserves a place in superqt as the default combobox:
additem
function.The above can be fixed by overriding some of the functions in combobox in qt. A good starting point is https://stackoverflow.com/questions/47575880/qcombobox-set-title-text-regardless-of-items. There is still things to add to it to make it more user friendly (e.g.,
additem
override, signal for item check state change, ...).Screenshots
The top one is the default combobox. The bottom one is one possible implementation of CheckComboBox.
The text was updated successfully, but these errors were encountered: