Lazarus

Programming => Widgetset => QT => Topic started by: Ocye on September 05, 2010, 11:56:20 am

Title: QT4 on Darwin (OpenGL and Dragimage)
Post by: Ocye on September 05, 2010, 11:56:20 am
Does the Qt4 framework supports opengl on MacOS? I get "-lGL" lib not found error when I switch to Qt. For carbon opengl works well, but since no canvas operation outside OnPaint are handled my app seems to need Qt.

I create different dragimages during runtime. With Qt (and, of course, carbon as well) nothing is shown so I assume it's not supported yet. Right?
Title: Re: QT4 on Darwin (OpenGL and Dragimage)
Post by: zeljko on September 05, 2010, 02:42:26 pm
No QGL isn't included in our bindings, so there's no support for OpenGL under any OS (with lazarus + qt of course).
Title: Re: QT4 on Darwin (OpenGL and Dragimage)
Post by: felipemdc on September 05, 2010, 07:45:06 pm
For carbon opengl works well, but since no canvas operation outside OnPaint are handled my app seems to need Qt.

Draw to a TBitmap and in your OnPaint event draw that bitmap to the screen. Call Invalidate in a timer or when your image changes.
Title: Re: QT4 on Darwin (OpenGL and Dragimage)
Post by: Ocye on September 06, 2010, 07:41:20 pm
No QGL isn't included in our bindings, so there's no support for OpenGL under any OS (with lazarus + qt of course).
Thats a pity.

Draw to a TBitmap and in your OnPaint event draw that bitmap to the screen. Call Invalidate in a timer or when your image changes.
And which OnPaint Event should I utilize to ownerdraw a TComboBox (some but not all items should be in italic font) or for TStatusBar.Panels (to paint a progress by fillrect e.g.)?
TinyPortal © 2005-2018