I am using QMainWindow and upon initialization I am adding two toolbars on my own. The result is shown in the attached screenshot.
My question is: how to remove default toolbar? I did not find any method that does that.
Printable View
I am using QMainWindow and upon initialization I am adding two toolbars on my own. The result is shown in the attached screenshot.
My question is: how to remove default toolbar? I did not find any method that does that.
I apologize for not mentioning the fact that prior to posting my question I read QMainWindow documentation. All QMainWindow methods to remove toolbar require the pointer to the toolbar as argument. I did not find method to get the pointer to the default toolbar.
So, I can restate the question this way: how to get the pointer to the default toolbar in QMainWindow?
Unless you changed the name.Code:
ui->mainToolBar
...or remove the toolbar in your ui file. In the designer right click -> remove!