openKylin论坛

 找回密码

QComboBox::setMaxVisibleItems ( int maxItems )为什么不生效.. [复制链接]

This property holds the maximum allowed size on screen of the combo box, measured in items.
By default, this property has a value of 10.

默认值都不生效

楼主
发表于 2014-3-20 19:29:40
回复

使用道具 举报

QComboBox::setMaxVisibleItems ( int maxItems )为什么不生效.. [复制链接]

在ubuntu12.04,qt4.8.1下,我是这样解决的:
增加:comboxBox->setStyleSheet("QComboBox { combobox-popup: 0 ;}");
沙发
发表于 2015-7-13 20:56:34
回复

使用道具 举报

openKylin

GMT+8, 2024-6-2 17:21 , Processed in 0.020768 second(s), 19 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表