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

Niels Dekker (Qt-interest) mymailfromqt at xs4all.nl
Wed Feb 9 14:28:36 CET 2011


Oliver Knoll wrote:
> Well, what is the motivation of this discussion anyway? ;) Are we
> talking about a possible future Qt API extension (in the form of some
> Q_CREATE_UI macro or "setup" method)? Or a design pattern that would
> be useful for everyone to follow? Or even a design pattern that Qt
> Creator should apply when auto-generating classes? A question of
> taste "reference vs pointer"? ;)

My initial motivation was just to share my idea, to see if other Qt users 
like the idea. Also I would like to know if there aren't any technicalities 
that I might have overseen. And I must say, the feedback you guys gave me so 
far was very useful to me.

I would certainly like it very much if a function like createAndSetupUi 
would become part of Qt. But that's beyond my control, of course  :-) I 
don't think it needs to be a macro. It's just a template function.

Kind regards, Niels
--
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center




More information about the Qt-interest-old mailing list