[Qt-interest] Qt Creator can not show application window

"黎 新懿.qt" lixinyi.qt at gmail.com
Thu Mar 5 16:17:07 CET 2009


>
> hi friends,
>
> I update my Qt to 4.5 on my Mac and I see something strange.
>
> I press Command + R to run a simple application:
>
> #include <QtGui/QApplication>
> #include "mainwindow.h"
> int main(int argc, char *argv[])
> {
> QApplication a(argc, argv);
> QMainWindow w;
> w.show();
> return a.exec();
> }
>
>
> usually I am supposed to see the window show up after compiling, but  
> now I can't
>
> I can only see a
>
> Starting ...
>
> in the Application Output, but the window won't show up.
>
> I check the project folder,  the Mac application is there, if I  
> double click it then I can see the window showing
>
> But in the new Qt Creator I just can't.
>
> Did I miss anything?
>
> Thanks in advance.
>
> Shiniji Mizuki
>
>
>




More information about the Qt-interest-old mailing list