Did you try simply using QMainWindow::setMenuWidget() and passing a complex widget composed of your custom data and a QMenuBar laid out vertically?
Qt Code:
+-------------------+ |QWidget w. v-layout| | +---------------+ | | | CUSTOM WIDGET | | | +---------------+ | | | QMenuBar | | | +---------------+ | +-------------------+To copy to clipboard, switch view to plain text mode
Edit: Note that it's available since Qt4.2. In earlier versions you have to stick with mangling with the layout directly.
Bookmarks