Forum > QT
QT4 on Darwin (OpenGL and Dragimage)
(1/1)
Ocye:
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?
zeljko:
No QGL isn't included in our bindings, so there's no support for OpenGL under any OS (with lazarus + qt of course).
felipemdc:
--- Quote from: Ocye on September 05, 2010, 11:56:20 am ---For carbon opengl works well, but since no canvas operation outside OnPaint are handled my app seems to need Qt.
--- End quote ---
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.
Ocye:
--- Quote from: 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).
--- End quote ---
Thats a pity.
--- Quote from: felipemdc on September 05, 2010, 07:45:06 pm ---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.
--- End quote ---
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.)?
Navigation
[0] Message Index