Hi , i cannot find any item to be a picture viewer...
I need a widget with access to clicked() signal.
Which one will give me this option ?
Hi , i cannot find any item to be a picture viewer...
I need a widget with access to clicked() signal.
Which one will give me this option ?
QLabel can be used to display an image, or a pixmap item in a graphics scene, or any custom widget using QPainter to draw the image.
Buttons have a clicked() signal, but you can add mouse event handling to whatever widget you have.
Cheers,
_
By overwriting the virtual mousePressEvent() and mouseReleaseEvent() methods, potentially more if you need more advanced event handling.
Cheers,
_
Bookmarks