I didn't post code originally since I was simply using basic functions but here it is anyways:
graphTabs->setMovable(true);
graphTabs->setTabsClosable(true);
graphTabs->setMinimumWidth(500);
graphTabs->setContentsMargins(0,0,0,0);
graphTabs->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
graphTabs->setMovable(true);
graphTabs->setTabShape(QTabWidget::Rounded);
graphTabs->setTabPosition(QTabWidget::North);
graphTabs->setTabsClosable(true);
graphTabs->setMinimumWidth(500);
graphTabs->setContentsMargins(0,0,0,0);
To copy to clipboard, switch view to plain text mode
connect(graphTabs, SIGNAL(tabCloseRequested(int)),this,SLOT(hideTab(int)));
connect(graphTabs, SIGNAL(tabCloseRequested(int)),this,SLOT(hideTab(int)));
To copy to clipboard, switch view to plain text mode
void MainWindow::hideTab(int tab_index)
{
graphTabs->removeTab(tab_index);
}
void MainWindow::hideTab(int tab_index)
{
graphTabs->removeTab(tab_index);
}
To copy to clipboard, switch view to plain text mode
All tabs are added like this:
graphTabs->addTab(rawPage->graphs,"&Raw Data");
graphTabs->addTab(rawPage->graphs,"&Raw Data");
To copy to clipboard, switch view to plain text mode
Bookmarks