I am newbie to Qt and am currently playing about with Qt Creator and raw C++ code. I have managed to get some simple functionality working, including a menu and toolbar by a
It seems QToolButton already has some sort of submenu, which is set with QToolButton::setPopupMode(ToolButtonPopupMode mode). If I've got you right, that would be a place to start: http://doc.qt.io/archives/qt-4.7/qtoolbutton.html#ToolButtonPopupMode-enum