C++ – How do large-scale applications handle GUI creation

cguiwindows

I'm interested in developing GUI-based Windows applications in C++, but I'm not sure how it's done in professional or large-scale settings. It seems it would take a lot of development time to describe all the elements (e.g., dimensions and such) within code.

Presumably it's not all done visually, right? How is it normally done? What methods are used to prevent a lot of time wasted on defining each and every property a UI control might have?

Best Answer

Qt and wxWidgets allow you to either layout elements with an editor or with code. Like most modern guis it uses layout sizers, so instead of specifying the exact pixel coordinates of each element you just say that things are grouped into vertical sets within horizontal sets within vertical ... rather like HTML

This is necessary when you are programming for different platforms with different size controls and for mobile platforms with different sized screens and for different languages with different word lengths