当前位置: 技术问答>linux和unix
请问大家QT中怎样改变QComboBox控件下拉列表每一项的高度?
来源: 互联网 发布时间:2016-04-06
本文导语: rt!谢谢 | ..... comboBox = new QComboBox(groupBox); QListView* view = new QListView(); QSize size = view->sizeHint(); size.setHeight(50); view->setGridSize(size); comboBox->setView(view); comboBox->setObjectName(QString::fromUtf8("comboBox"...
rt!谢谢
|
.....
comboBox = new QComboBox(groupBox);
QListView* view = new QListView();
QSize size = view->sizeHint();
size.setHeight(50);
view->setGridSize(size);
comboBox->setView(view);
comboBox->setObjectName(QString::fromUtf8("comboBox"));
comboBox->setGeometry(QRect(40, 30, 200, 60));
..........
很难看.........
comboBox = new QComboBox(groupBox);
QListView* view = new QListView();
QSize size = view->sizeHint();
size.setHeight(50);
view->setGridSize(size);
comboBox->setView(view);
comboBox->setObjectName(QString::fromUtf8("comboBox"));
comboBox->setGeometry(QRect(40, 30, 200, 60));
..........
很难看.........