Drawing widgets (such as buttons) over QGraphicsView

Posted by Aditya Bhatt on Stack Overflow See other posts from Stack Overflow or by Aditya Bhatt
Published on 2010-06-06T18:32:57Z Indexed on 2010/06/07 1:22 UTC
Read the original article Hit count: 300

Filed under:
|
|

How do I draw interactive widgets such as QButtons and Line Edits over a QGraphicsView? For ex, I have selected a region over an image in an image editing app which displays an image with QGraphicsView, and I want to annotate this region with a name.

So I want to have a Line edit and two buttons (Cross and Tick) below this rectangular selection. How do I draw these?

Sample code would be cool!

© Stack Overflow or respective owner

Related posts about qt

Related posts about qgraphicsview