Idea how to create professional app
-
I wanna create multiwindowed app or it names like frames.
I mean transitions in app and change layout widgets by clicking on buttons.
How to create it more eficient?
Should I createclass MainWindowand first frame will be a set of couple of widgets by clicking on the button how i can delete all widgets (clear Layout) and fill with other type of widgets and it will be a second frame and so on.
Such "Frames" should be as methods or classes ? Every new "Frame" = newclass Frame 1,2,3...ordef frame1() def frame2() -
I wanna create multiwindowed app or it names like frames.
I mean transitions in app and change layout widgets by clicking on buttons.
How to create it more eficient?
Should I createclass MainWindowand first frame will be a set of couple of widgets by clicking on the button how i can delete all widgets (clear Layout) and fill with other type of widgets and it will be a second frame and so on.
Such "Frames" should be as methods or classes ? Every new "Frame" = newclass Frame 1,2,3...ordef frame1() def frame2()@MAX001
It is hard to answer from this description. But did you maybe look atQWizardfor "stepping through" a series of different looking views,QStackedWidgetfor a general one? Not my area, but if you want "transitions" and "look slick" you might also consider QML instead of widgets? -
@MAX001
It is hard to answer from this description. But did you maybe look atQWizardfor "stepping through" a series of different looking views,QStackedWidgetfor a general one? Not my area, but if you want "transitions" and "look slick" you might also consider QML instead of widgets?@JonB On transition I mean like make a click all widgets delete and load another Layout with other widgets.
For example File Explorer click on disc D:/ opens D:/ click on inside folder it opens
Without breaking windows frames etc. Click load other layout click another one click other one.
Ps Sorry of my describes ))) -
@JonB On transition I mean like make a click all widgets delete and load another Layout with other widgets.
For example File Explorer click on disc D:/ opens D:/ click on inside folder it opens
Without breaking windows frames etc. Click load other layout click another one click other one.
Ps Sorry of my describes ))) -
Hi,
Encapsulation is one of the key here.
If you have several widgets for different actions in your application, then create separate widgets and give them a a proper API to interact with the other components of your application.
Trying to build and rebuild your UI only functions will make your code hard to reason about and maintain.