Please comment: ComboBoxWidget change

Germain Garand germain at ebooksfrance.org
Fri Oct 10 00:01:38 BST 2008


Le mardi 7 octobre 2008, David Faure a écrit :
> On Sunday 05 October 2008, Germain Garand wrote:
> > unfortunately, QComboBox doesn't seem to offer the necessary hooks to the
> > actual popup widget, so we cannot set the position we want.
>
> Which kind of hook do you need? The popup widget is accessible as view().
> Knowing when it's going to show up could be done with an event filter for
> ShowEvent on that view widget.


I don't remember exactly... the popup is actually a private container for the 
view. It is certainly possible to walk to it from view(), but that isn't the 
problem.
IIRC the QComboBox::showPopup virtual is actually 200 loc doing all kind of 
fancy sizing calculations with some private methods, that won't work on our 
offscreen widgets.

So the bottom line is, it probably is possible to do it, at the expense of 
reimplementing the functionality of those 200 loc.

Germain




More information about the kfm-devel mailing list