Qt 如何为QCombobox设置滚动视图的样式?
我需要为Qt 如何为QCombobox设置滚动视图的样式?,qt,stylesheet,qcombobox,Qt,Stylesheet,Qcombobox,我需要为QCombobox应用样式表。有人能给我一个吗 给我举个例子?我认为使用QScrollView会影响 QCombobox但它没有。以及如何限制中显示的项目数量 组合框?您应该从正式的QCombobox样式表开始。基本上是这样的: QComboBox { border: 1px solid gray; border-radius: 3px; padding: 1px 18px 1px 3px; min-width: 6em; } QComboBox:edi
QCombobox
应用样式表。有人能给我一个吗
给我举个例子?我认为使用QScrollView
会影响
QCombobox
但它没有。以及如何限制中显示的项目数量
组合框?您应该从正式的QCombobox样式表开始。基本上是这样的:
QComboBox {
border: 1px solid gray;
border-radius: 3px;
padding: 1px 18px 1px 3px;
min-width: 6em;
}
QComboBox:editable {
background: white;
}
您可以使用属性限制QComboBox中可见项的数量