pmaynard
28th August 2013, 19:37
I'm trying display two images side by side (an original and an enhanced copy), and I want to have the position of the system cursor in one QGLWidget mirrored in the other. I've created a QCursor for the 2nd window/QGLWidget, called (widget)->setCursor(), and then (cursor)->setPos(x,y). When I do this the cursor jumps out of the widget and MdiApp and lands in the top left of the monitor.
Can I have 2 cursors? If yes, can anyone give me any tips on how to do this so that the 2nd cursor stays in the intended QGLWidget? If not, then I can choose between drawing the 2nd cursor as an overlay with openGL or QPainter. Any recommendations?
Can I have 2 cursors? If yes, can anyone give me any tips on how to do this so that the 2nd cursor stays in the intended QGLWidget? If not, then I can choose between drawing the 2nd cursor as an overlay with openGL or QPainter. Any recommendations?