hi,

to draw a rubberband on a opengl widget for selection
i want to draw a rectangle
using qpainter in xor mode. when the painter starts painting
the gl widget disapears suddenly and only the rectangle is shown. after
the painter stops painting the gl widget shows up again.

how can i draw on a OpenGL widget using qpainter? the same code
worked in qt3 ?!

(qrubberband does not work in this case because it's much too slow since
the opengl widget is repainted every time the size of the rubberband is changed)

best regards,
jh