Hey all,
My program I am working on has two .ui files. The first of these (browser.ui) creates a layout with a TabWidget and a button. When I click the button, it adds another tab to the TabWidget. I would like the new tab to be filled with my second ui file (TabContent.ui). How can I do this?
code:
browser.cpp:
#include "browser.h"
#include "ui_browser.h"
#include "ui_TabContent.h"
browser::browser(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::browser)
{
ui->setupUi(this);
}
browser::~browser()
{
delete ui;
}
void browser::on_NewTabButton_clicked()
{
!!NEEDS TO BE FILLED WITH TABCONTENT.UI!!
}
↧