How to scale image in paintevent



  • Hi,

    Can anyone provide , how to scale the image in paintevent,
    i am using QImage and then painting on QWidget.
    using paintevent.?

    Thanks,


  • Qt Champions 2016


  • Qt Champions 2016

    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)


Log in to reply