PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1056 - QComboBox.setMaxVisibleItems has no effect on ubuntu and MacOS
: QComboBox.setMaxVisibleItems has no effect on ubuntu and MacOS
Status: RESOLVED INVALID
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.8
: PC Linux
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-11-13 15:22 EET by Aaron Richiger
Modified: 2011-12-02 14:38 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Richiger 2011-11-13 15:22:28 EET
The method QComboBox.setMaxVisibleItems(int) does not work on my Ubuntu 11.10
and either on Mac OS Lion. I got the info, that this works as expected on
windows and Arch Linux, but fails with PyQt and PySide on Ubuntu and MacOS.

from PySide.QtGui import *
import sys

app = QApplication(sys.argv)
cb = QComboBox()
cb.addItems(['Data a', 'Data b', 'Data c','Data d'])
cb.setMaxVisibleItems(2)
cb.show()
sys.exit(app.exec_())
Comment 1 Hugo Parente Lima 2011-12-02 14:38:43 EET
Yes, it works for me, but I'm on ArchLinux.

Anyway there's nothing special with this method and PySide just redirect the
function call to Qt, so if there's a bug it's on Qt or Qt + your window system,
PySide has no rule on that issue :-/.

You can try to report it on Qt bug tracker.

Regards