QMainWindow comes with a default toolbar. How do I find this toolbar? In other words what is the equivalent of QMainWindow:: menuBar() ?
Thanks!
Looks like you have to 'find' them - as they appear not to be a specific
function to return the toolbar(s).
A quick lookaround various sites all suggest doing it like this:
QList<QToolBar *> toolbars = mainWindow.findChildren<QToolBar *>()
Last edited on