Hi,
Is ther a way to disable and item in QCombobox?
Hi,
Is ther a way to disable and item in QCombobox?
I don't think this is possible in Qt3. You'd have to port your project to Qt4.
not even with subclassing QCombobox?
I don't think so. You might try by accessing the listBox of the combobox and manipulating its items - for instance calling QListBoxItem::setSelectable() to make items not selectable, but it could be much work and no effects. Feel free to try it, though.
A question regarding this topic: how to implement such feature in Qt4? I don't see the way to contol QComboBox items behaviour.
Oleg Shparber
Stupid question, what is the way to set flags for QComboBox items? I can get the model for combobox, but how to change flags of its rows?
Oleg Shparber
You need to set a custom model on the combobox that will return proper flags.
Bookmarks