It seems like PyQt4 behaves in the same way.
--
anatoly t.


On Fri, Oct 28, 2011 at 4:43 PM, Aaron Richiger <[email protected]> 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
> [email protected]
> http://lists.pyside.org/listinfo/pyside
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to