Qt-interest Archive, March 2002
QComboBox
Message 1 in thread
Hello,
two questions about QComboBox:
1. How to change the hight of the items ?
In the old native windoze prog it worked
with "CB_GETITEMHEIGHT" and "CB_SETITEMHEIGHT"
and I thik it should work with the following
code fragment, but it doesn't:
QComboBox* w = new QComboBox(parent->widget);
int hli=2+SendMessage(w->winId(), CB_GETITEMHEIGHT, 0, 0);
SendMessage(w->winId(), CB_SETITEMHEIGHT, 0, hli);
2. When inserting a separator two pixels high with
QComboBox->insertItem(QPixmap((const char**)separator_xpm));
it is also selectable but it shouldn't. Is there a
better way to insert a separator?
Thanks
Markus