Originally Posted by
marcel
Could you post an example reproducing the problem?
Or at least a portion of your code? For example, where do you create and initialize the combo box.
AFAIK, Jpn did something like this( a custom combo with checkable items ), just because it did not existed by default.
So, I say it again, it is pretty weird.
Check this out:
http://jpnurmi.kapsi.fi/blog/2007/07...-2007/#respond
Regards
The original code:
comboBox ->setGeometry(geometry);
comboBox ->setEditable(false);
comboBox ->setFrame(false);
comboBox ->setMaxVisibleItems(itemsCount);
comboBox ->view()->setMinimumWidth(width);
QComboBox comboBox = new QComboBox(this);
comboBox ->setGeometry(geometry);
comboBox ->setEditable(false);
comboBox ->setFrame(false);
comboBox ->setMaxVisibleItems(itemsCount);
comboBox ->view()->setMinimumWidth(width);
To copy to clipboard, switch view to plain text mode
This fixed the check box thing but has some weird scroll issues:
view->setAutoScroll(false);
view->setMinimumWidth(width);
comboBox ->setGeometry(geometry);
comboBox ->setEditable(false);
comboBox ->setFrame(false);
comboBox ->setMaxVisibleItems(itemsCount);
comboBox ->setView(view);
QListView *view = new QListView;
view->setAutoScroll(false);
view->setMinimumWidth(width);
QComboBox comboBox = new QComboBox(this);
comboBox ->setGeometry(geometry);
comboBox ->setEditable(false);
comboBox ->setFrame(false);
comboBox ->setMaxVisibleItems(itemsCount);
comboBox ->setView(view);
To copy to clipboard, switch view to plain text mode
Btw. The parent widget has setStyle(QStyleFactory::create("plastique"));
Bookmarks