I worked on this in a cold fire system (no mmu value, small memory, i.e. size matters).
Since the entire GUI consisted of custom widgets, we removed all classes except QWidget using qconfig. We also took the liberty of removing all resources from project files (i.e., stock icons, etc.).
The result was, if I remember correctly, the size of the library ~ 960 KB. It was pretty unusable, but as a result, we had to redefine quite a few widgets. However, we did not have a touch or a proper keyboard, so we could write small compact widgets. When we did this, we hard-coded the style in the widgets, reducing the need for QStyle, etc.
e8johan
source share