[Qt-interest] dragging a picture
Christoph Keller
gri at not-censored.com
Sun Mar 21 17:54:52 CET 2010
Hi,
you could reimplement the QWidget's mouseMoveEvent(), mousePressEvent()
and mouseReleaseEvent().
The pressEvent remembers the point where you've clicked. The
mouseMoveEvent scales the image by the y-distance of the cursor to this
point. The releaseEvent stops the operation.
Greetings,
Christoph
Am 19.03.2010 16:35, schrieb vyshakh krishnan:
> hi all,
>
> i want to display a picture in qt which can be resized horizontally by
> dragging it. can anybody suggest a method in qt to do it.
>
> regards,
> vyshakh krishnan
More information about the Qt-interest-old
mailing list