I find it works the same way in PySide and PyQt4. But in both of them, it
works as expected: I only see 2 items visible (but can scroll to see more
items). I am using Arch Linux, PySide 1.0.6 and Qt 4.7.4.

Ben

On Fri, Oct 28, 2011 at 11:11 AM, anatoly techtonik <techto...@gmail.com>wrote:

> It seems like PyQt4 behaves in the same way.
> --
> anatoly t.
>
>
>
> On Fri, Oct 28, 2011 at 4:43 PM, Aaron Richiger <a.ri...@bluewin.ch>
> wrote:
> > Dear list!
> >
> > I think, there is a bug concerning the QComboBox class. The method
> > setMaxVisibleItems(int) does not work on my Ubuntu 11.10 and either on
> Mac
> > OS Lion. Could anybody confirm this on Windows or other unix systems? Or
> > tell me what is wrong with my expection of the following piece of code
> > (shows all instead of only 2 items in my case):
> >
> > 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_())
> >
> >
> > Additionally, it flickers a little bit before showing completely on my
> > machine, I guess, this is also a bug.
> > And finally, if you define your own QStyledItemDelegate by returning a
> > combobox, you get a dead combobox, no highlightning as usual is done on
> > mouse over event, editor does not react on mouse click. This is probably
> not
> > a bug, but it would be nice anyway if you get the standard behaviour of a
> > QComboBox if you return as a delegate. I know, I could implement this by
> > handling the editorEvents and act there on mouseOver and mousePress etc,
> but
> > this is quite a bit of work and should be the the default implementation
> in
> > my opinion.What do you think?
> >
> > Hope to hear from you, then I can fill in a bug report if the bug is
> > confirmed...
> >
> > Aaron
> > _______________________________________________
> > PySide mailing list
> > PySide@lists.pyside.org
> > http://lists.pyside.org/listinfo/pyside
> >
> _______________________________________________
> PySide mailing list
> PySide@lists.pyside.org
> http://lists.pyside.org/listinfo/pyside
>
_______________________________________________
PySide mailing list
PySide@lists.pyside.org
http://lists.pyside.org/listinfo/pyside

Reply via email to