Hi,

maybe you are missing the QApplication completely? Little example 
assuming you're in your main():

This will work
...
    QApplication app(argc, argv);
 
    // Setup the main window designed with qt designer.
    DesktopGuiMainWindow mainWindow;
    mainWindow.show();
...

This will not
...
    // QApplication app(argcc, argvv);
 
    // Setup the main window designed with qt designer.
    DesktopGuiMainWindow mainWindow;
    mainWindow.show();
...

You can take a look at the Qt docs for a lot more info on how to setup a 
Qt app.

Cheers,
Christoph

ÖÜÉØÔó schrieb:
> Hello:
> Could anybody provide precompile qt 3.3.6 of opensg1.8win ?I want to build
> SceneViewer,which need that.
> I have compiled qt 3.3.6 myself ever.but is not compatible with the
> open1.8win.exe
>
> :(
> built with my compiled  qt3.3.6 ,there is the errors when run the app:
>
> QPaintDevice: Must construct a QApplication before a QPaintDevice
>
> maybe the problem of compatible.What happen?
>
> thanks a lot.
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to