[Qt-interest] How to disable combo box list items?
Robert Hairgrove
evorgriahr at hispeed.ch
Mon Dec 29 20:36:22 CET 2008
What would be the easiest way of graying out list items similar to when
a menu item is disabled? I have a configuration dialog with stacked
widgets selected by a combo box (a QComboBox created in QtDesigner).
In this particular case, I am offering database support for a limited
number of interfaces: MySQL, MSAccess, ODBC and SQLite. The idea would
be to keep the same code base accross different platforms, but maybe
disable MSAccess support on Linux.
Looks like there is no built-in way to do this? I would really like to
avoid subclassing the combo box, item delegates etc. if possible (LOTS
of work involved there...).
More information about the Qt-interest-old
mailing list