Please can someone help me with the following:
I have placed a tabWidget on the form, not taking up the full form though.
This tabWidget I have renamed tabWidget1, and it has 2 tabs.
On the first tab I have placed another tabWidget called tabWidget2, and it has a further 4 tabs.
In my editor (Qt Creator) I have the following
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui
->tabWidget1
->setTabPosition
(QTabWidget::South);
...
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->tabWidget1->setTabPosition(QTabWidget::South);
...
To copy to clipboard, switch view to plain text mode
However I get the error message
class Ui::MainWindow has no member named tabWidget1
If I allow Qt Creator to suggest values for me by typing "ui-> tab" then it shows me 2 available tabs, tabWidget and tabWidget_2. However, these were the original names, I have subsequently renamed them to tabWidget1 & tabWidget2.
If I switch over to edit, and do a search for tabWidget & tabWidget_2, it isn't even found!
I have saved, exited and restarted Qt Creator. Still nothing. Am I doing this right in order to make use of these tabWidgets?
Regards,
Shaun
Bookmarks