Phalanx
16th April 2010, 15:17
Hi, I have a problem with connection my widgets. This is pseudocode:
mainwindow.cpp:
(my own widgets)
FileWidget *My_Files = new FileWidget(this);
TableWidget *My_Table = new TableWidget(this);
then I have files for filewidget and tablewidget
*.cpp *.h *.ui
I need in filewidget.cpp use something like ui->TableWidget->addTab()
I including into filewidget.cpp tablewidget.h and tablewidget.ui... but I must not create another instance of tableWidget.
Thank you for replies
mainwindow.cpp:
(my own widgets)
FileWidget *My_Files = new FileWidget(this);
TableWidget *My_Table = new TableWidget(this);
then I have files for filewidget and tablewidget
*.cpp *.h *.ui
I need in filewidget.cpp use something like ui->TableWidget->addTab()
I including into filewidget.cpp tablewidget.h and tablewidget.ui... but I must not create another instance of tableWidget.
Thank you for replies