[Kde-games-devel] simple QGLWidget program

Kevin Krammer kevin.krammer at gmx.at
Mon Jan 26 19:49:24 CET 2004


On Monday 26 January 2004 19:39, Jan Bernatik wrote:
> > Try setting an initial size before showing the widget.
> > Something like
> > w.resize(600, 400);
>
> Yes, I tried this. Window was resized properly ( means GL widget was
> resizing), so that makes me think that widget is "initialized" properly.
> I'm not sure how to set QGLWidget to use doublebuffering or not & stuff.
> I will check.

Rename your methods Draw to paintGL or call makeCurrent before drawing.

At least that's how I understand the docs :)

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20040126/7c707000/attachment.pgp


More information about the kde-games-devel mailing list