Unsolved 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.
-
@lansing
If you can't get rid of them in Creator --- I can't remember if you can --- there is always runtime https://doc.qt.io/qt-5/qtabwidget.html#removeTab to remove tabs. -
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.
-
@lansing
Hmm...I don't know what a stop sign means...
But the normal way is, right click theQTabWidget
(not the page) -> Page x of y -> Delete -
-
Hi
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.