Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
Can anyone provide , how to scale the image in paintevent, i am using QImage and then painting on QWidget. using paintevent.?
Thanks,
http://doc.qt.io/qt-5/qimage.html#scaled
and as a note it returns the scaled image as copy. its NOT affecting the original. so u must do QImage scaled=orgpic.scaled(xx)