[Qt-interest] A new (?) const-correct way to create aUiobjectand do setupUi

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Feb 9 10:44:05 CET 2011


On 2011-02-09 Niels Niels Dekker (Qt-interest) wrote:

>> ...
> The motivation is to *allow* the user to declare the ui member as a const reference,
> with only a *minimum* amount of boilerplate code

Ok, makes sense. However having a "const UI" sounds for me like "never change the UI again after creation!".

And why would one never want to change the UI once it is created, like setting widget visibility, adding new QActions to a menu of the UI etc.?

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22





More information about the Qt-interest-old mailing list