m_comboValue->setMinimumHeight(30);
m_comboValue->setStyleSheet("QComboBox { min-height: 30px; min-width: 60px; }"
"QComboBox QAbstractItemView::item { min-height: 30px; min-width: 60px; }");
//m_comboValue->setEditable(true);
//m_comboValue->setMaxVisibleItems(10); //设置显示下拉的子项数量
m_comboValue->setView(new QListView());
设置QComboBox的下拉高度
最新推荐文章于 2023-12-21 14:10:47 发布