How to make the Qt MainWindow class simple?

The MainWindow class in a GUI, such as Qt applications, is usually very large, including all menus, toolbars, a central widget and other widgets, and many member functions corresponding to all types of events, and many other member functions to perform this or that.

Is there a good strategy to simplify the class?

Thanks a lot!

Jayden

+4
source share
1 answer

Similarly, you break up any large component:

Annotation (break) functionality and responsibilities in subcomponents; repeat until a suitable level of detail is reached.

Without any specific details, it is difficult to be more precise.

+4
source

All Articles