I know object-oriented programming, probably I don't know so well, but I followed your advise and I searched in google but I didn't find nothing new.
This multi-page application is not like a wizard-style sequence.
At the moment I have two ideas/solution:
Idea/solution n°1:
-) One Form "MyForm" created using Designer where I put the QStackedWidget and create the GUI (so put in each pages the custom widget using Designer)
-) One class "MainWindow" inherit from QMainWindow and from Ui::MyForm that deal the interaction between the QStackedWidget pages
-) Thirty or more classes that deal the content of each page
In this way I have only improved the legibility
Idea/solution n°2:
-)One Form "MyForm" created using Designer where I put the QStackedWidget
-)One class "MainWindow" inherit from QMainWindow and from Ui::MyForm that deal the interaction between the QStackedWidget pages
-)Thirty Form "PageXXXForm"one for each Page
-)Thirty or more classes inherit from QWidget and Ui::PageXXXForm that deal the content of each page
At the beginning the class "MainWindow" could create all the PageXXX object or only the 5-6 normally used and then create the other when necessary.
But in this way I create a lot of classes one for each page.
Probably solution n°2 is a good solution, but it is possible to do better?
If someone has an idea or tell me where I made a mistake please tell me
Thanks
Bookmarks