Skip to content

KToolBarPopupAction: Use the menu from menu() if set

Unlike my initial assumptions, there's valid use cases for using KToolBarPopupAction with a custom regular menu: If you place a QAction in a toolbar, it becomes a "split" button. There's no way to influence that other than using this action class instead.


Gwenview does that and doesn’t even place it in a menu, so I thought it could just use a regular QAction but obviously it couldn’t.

Merge request reports