[Interest] Issues with QPainter on Mac 10.10

Giuseppe D'Angelo dangelog at gmail.com
Wed Mar 4 18:42:02 CET 2015


On 4 March 2015 at 12:43, Matthias Thöny <thoenu at gmail.com> wrote:
> I don't really see the proposed work around. Because you cannot actually
> call any QT function based on OpenGL < 3.0 anymore without letting the
> application crash (e.g. renderText in QGLWindow) , when selecting a 4.1
> context (only under mac osx). But I agree that it is a pain to propose
> implementations for every OpenGL core versions only because Apple does not
> provide a compatibility profile. Thanks for the link.

In fact I was not proposing calling those functions, rather something like

QImage image(size, format);
QPainter p(&image);
p.drawText(); /* etc.etc. */
p.end();

QOpenGLTexture *texture = new QOpenGLTexture(image);
/* bind, use it */

-- 
Giuseppe D'Angelo



More information about the Interest mailing list