Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Need help with adding tabs in QTabWidget.

$
0
0
I have main window with tabwidget. As I start program I have one tab with some objects. I tried make new tab this way: void MainWindow::addTab(){    ui->tabWidget->addTab(new MainWindow(),"Download"+QByteArray::number(ui->tabWidget->count()+1)); } but I noticed a problem, this way I use all parts of MainWindow in new tab even with menu bar and tabwidget (QTabWidget). So I have to take only tab components and use it in another tab but I can’t figure out how. All its content is in ui->tab and I want take it and use to make new tab. (I have made ui with .ui file via Qt designer) How can I use it? Any hint? Thanks.

Viewing all articles
Browse latest Browse all 18427

Trending Articles