Requesting advice for QStackedWidget, QMainWindow program I am trying to get going.
I have a Qt Designer UI which contains a QStackedWidget in a QMainWindow, with a toolbar above the stackedWidget (fairly straightforward). I would like to create separate classes which represent each page of the stackedWidget (for manageability).
Since Designer has one file for the whole GUI how would I put the whole thing together? I was thinking something like the following:
mainWindow.h & .cpp (construct the gui and implement toolbar buttons to change pages on the qstackedwidget)
page1.h & .cpp (exclusively control page 1)
page2 ..... and so on.
First, does this sound like a good plan?
Second, pretty sure I would #include the ui_UIfilename.h in all the classes THEN what? - (my guess would be to itemize the objects again in their respective places in the header file a.k.a. public:, private: public slots: etc).
If there is a tutorial or example or another forum question, please don't hesitate to point me there- or any personal preferences on the implementation of Designer based gui's
Goes2BoB
Bookmarks