if i need to have zoom and image moving features(through wheel event and mouse move event) ,should i have to reimplement the QLabel.So why not put a QLabel inside QScrollArea and forget about the whole problem?
if i need to have zoom and image moving features(through wheel event and mouse move event) ,should i have to reimplement the QLabel.So why not put a QLabel inside QScrollArea and forget about the whole problem?
No, you just set the zoomed pixmap to the label. Panning should work out of the box.
i am following the same .I need rubberband zooming .Is it possible with QScrollArea.So why not put a QLabel inside QScrollArea and forget about the whole problem?
Yes, of course. Use QRubberBand and calculate the zoom rectangle based on the position of the viewport.
Bookmarks