[Qt-interest] Configure QtDesigner ui.h

John Weeks john at wavemetrics.com
Fri Sep 2 17:59:47 CEST 2011


Sorry, Bo. I always forget to change the To: field to send to the list...

On Sep 1, 2011, at 10:27 PM, Bo Thorsen wrote:

> Just remember to make the ui a pointer in the class and do a "new 
> MyUIThing" in the constructor. Don't let your class inherit the UI class.

This caught my eye. Why do you say that? C++ GUI Programming with Qt 4, second edition, page 27 shows their simple example dialog doing exactly that. I rather like the readability of simply naming the widgets instead of lots of "ui->..." stuff.

Regards, John Weeks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110902/4464650a/attachment.html 


More information about the Qt-interest-old mailing list