[Qt-interest] Overflow QComboBox maxvisibleItem.
minsoub Jung
minsoub at gmail.com
Wed Feb 24 01:53:44 CET 2010
I tried setting MaxVisibleItems of QComboBox.
I tried coding something like :
Qt Code:
QComboBox *combo = new QComboBox;
combo->setModel(queryModel);
combo->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
// MaxVisibleItems set
QCompleter *p = new QCompleter(queryModel);
p->setMaxVisibleItems(20);
combo->setCompleter(p);
combo->show();
The code execute, then QComboBox Size is overflowed and it's height
exceed screen size.
QComboBox item count is 300.
Why don't display so MaxVisibleItem as I'm setting?
What's incorret?
please, Somebody help me.
More information about the Qt-interest-old
mailing list