Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How do I remove the two default tabs in QTabWidget created by Qt Creator?
In my creator I create a QTabwidget in the ui, it came with two default tabs. Now I want to add my own tab in the source, how do I remove those default one? The creator is not letting me to delete them.
JonB last edited by
JoeCFD last edited by
QTabWidget::clear(). In the creator right click the tab name and you can delete them.
I can't, they have the stop sign on their name, there's no delete option when right click.
Bonnie last edited by Bonnie
Hmm...I don't know what a stop sign means...
But the normal way is, right click the
QTabWidget(not the page) -> Page x of y -> Delete
JonB last edited by JonB
As @Bonnie says
Oh I see the options now, I was right clicking on the tab objects in the tree view on the right panel. There's no delete option there.