Thanks, but unfortunately nothing happens when I click in the label, just the checkbox. I'll see if I can figure something else out.
Thanks, but unfortunately nothing happens when I click in the label, just the checkbox. I'll see if I can figure something else out.
Sounds like the model is intercepting these signals and is eating them. The only other thing I can suggest is adding an event filter on the combobox to look for mouse press events (or better mouse press / release pairs), but then that gets ugly because you'd have to deal with the open / closed state of the drop-down, and if open, determining from a pixel mouse position which specific item was clicked.unfortunately nothing happens when I click in the label
Unlike QAbstractItemView, the combobox does not have any concept of a QItemSelectionModel (or at least it doesn't expose this in the public interface) so there is no way to interact with the selection state.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks