PDA

View Full Version : Edit box in QGraphicsScene rendered in OpenGL



Luc4
19th August 2011, 22:40
Hi! I need to create something like an edit box that has to be inserted in a QGraphicsScene (rendered in OpenGL). I know I can use a proxy widget, but I don't think this would be very efficient in terms of graphics performance (I've been told that proxy widgets are first rendered with the raster paint engine in software). Is there any other way?

I'm using QGraphicsLayout, and I've seen there is a QGraphicsWidget class that seems perfect. But what would be the best way to provide something like an edit box? The QGraphicsTextItem maybe?

Thanks!