[Qt-creator] Why is UI always created as a pointer and not overloaded?
Andre Poenitz
andre.poenitz at nokia.com
Wed Feb 11 11:18:01 CET 2009
ext Matthias Pospiech wrote:
> This is what Qt-Creator creates automatically:
> [...]
> //------------------------------------------
>
> Whereas I am used to this code:
>
>
> //------------------------------------------
>
> class MainWindow : public QMainWindow, protected Ui_MainWindow
That the uic generated header to be #included in your header
while for the setup used by Creator a declaration is sufficient.
Using the declaration-only variant reduces #include dependencies
and therefore scales better to larger projects.
Andre'
More information about the Qt-creator-old
mailing list