minsoub
23rd February 2010, 07:19
Version : Qt 4.6.0
OS : Linux
I tried setting QComboBox Height.
Qt Code :
QComboBox *cbo = new QComboBox;
QSqlQueryModel *model = new QSqlQueryModel;
....
cbo->clear();
cbo->setModel(model);
cbo->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
cbo->view()->setFixedHeight(100);
If it's code execute, then QComboBox's area overflowed in window screen.
Any suggestions?
( please show to me the short example ...
I'm beginer Qt.
)
Thanks.
OS : Linux
I tried setting QComboBox Height.
Qt Code :
QComboBox *cbo = new QComboBox;
QSqlQueryModel *model = new QSqlQueryModel;
....
cbo->clear();
cbo->setModel(model);
cbo->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
cbo->view()->setFixedHeight(100);
If it's code execute, then QComboBox's area overflowed in window screen.
Any suggestions?
( please show to me the short example ...
I'm beginer Qt.
)
Thanks.