What concept should I use to build “hierarchical” graphical interfaces in Qt?

I did a lot of WPF, and now, for the first time, I tried to understand Qt, which is still quite successful.

However, in WPF, I use the encapsulation of individual parts of the GUI in user controls so that I can easily reuse them in the dialog box or rearrange the entire block without having to touch each element. If, for example, I build the main window, which will display information about the hospital, about the area in which it is located, and about its manager, I would encapsulate each of the three blocks in User Control, and my main window will contain only three instances these controls.

With Qt, I have not yet been able to determine the concept that I should use for this type of encapsulation. Should I “throw” these building blocks as custom widgets? I assume that Qt has a concept for what I cannot find, because I do not know what he called.

Thank you for your help!

FS

+4
source share
1 answer

You will create custom classes based on a QWidget or other simple widget class (e.g. QFrame ). This is a fairly standard practice; no other concept is needed.

+4
source

All Articles