QAction-related problems/needs

Boudewijn Rempt boud at
Wed Apr 5 09:27:59 BST 2006

On Wed, 5 Apr 2006, Thiago Macieira wrote:

> >The first three seem logical, but the latter is killing me; lots of code
> > duplication. Maybe QToolButton's support for a "popup" could be
> > generalized so that the popup isn't necessarily a QMenu, but any
> > QWidget? Looking at the code I see little that actually requires a
> > menu... except for the exec() call, but I guess the QMenu::exec() code
> > could be done directly in qtoolbutton to "exec" any widget...
> Right. If we can't find a simpler solution for this issue, then I'd like 
> to see if we can easily solve it the Qt side, rather than having to write 
> 100s lines of code as workarounds.
> We shouldn't have to workaround limitations. We should fix them, if 
> possible.

Maybe it's already possible, but I would also like to be able to have 
a popup from other widgets than a QToolButton -- for instance, a
QTabBar, to create the kind of tab dock Photoshop has, where you
place a QTabBar in a toolbar and on clicking the a tab, the widget
that belongs to the tab pops out.


More information about the kde-core-devel mailing list