[Qt-interest] QMainWindow and QGL.
Freak .
mentalcodes at gmail.com
Wed May 13 01:39:29 CEST 2009
Thankyou Karol, That indeed worked well, I wouldn't of guessed the Syntax
myself, so thanks again for the code example. I will now get to some more
reading and workout why that worked so well. :) Thanks again for the prompt
reply.
Cheers,
Scott.
Try:
> int main(int argc,char* argv[])
> {
> QApplication app(argc,argv);
>
> QMainWindow window;
> QGLWidget oglwdg;
> window.setCentralWidget(&oglwdg);
> window.show();
> return app.exec();
> }
>
> I don't have access to a computer with Qt right now, so I'm not 100%
> sure that the above code works (or if it even compiles), but that is
> the general idea.
>
> --
> Cheers,
> Karol Krizka
> http://www.krizka.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090513/89ec4dac/attachment.html
More information about the Qt-interest-old
mailing list