QT QComboBox的下拉列表项设置高度

setStyleSheet("QComboBox { min-height: 40px; min-width: 60px; }"
        "QComboBox QAbstractItemView::item { min-height: 40px; min-width: 60px; }");
QComboBox *combo = new QComboBox(this);
combo->setView(new QListView());

见:http://www.qtcentre.org/threads/13496-CSS-QCombobox-setting-min-height-for-drop-down-list

你可能感兴趣的:(qt)