Unsolved Can we create multiple tabs in Central Widget of QT QMain Window
-
Can we create multiple tabs in Central Widget of QT GUI
-
@Qt-Enthusiast
Are you looking something like this http://doc.qt.io/qt-5/qstackedwidget.html ? -
Hi,
Or QTabWidget ?
-
can we make QTabWidget as central widget
-
@Qt-Enthusiast yes
-
can some one share with me the application where central widget is made as QTabWidget
-
Take a look at Tab Dialog Example a subclass of
QDialog
. -
Hi
There is really nothing to it.you can just do
auto tw = new QTabWidget (this); tw->addTab(new QWidget, "first"); setCentralWidget( tw );