Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How can i rotate a pixmap from horizontally to vertically?

    General and Desktop
    3
    3
    2896
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pratik041 last edited by

      I want to display a horizontal image as vertical image using painter. I have tried painter.rotate(value); but i am getting the distorted image.

      Pratik Agrawal

      1 Reply Last reply Reply Quote 0
      • R
        Rahul Das last edited by

        hope "this":http://www.qtforum.org/article/20902/rotating-a-qpixmap.html?s=be35ec3384822e07e6fc23b84e67b22e502091bb#post92612 helps..


          Rahul Das
        

        1 Reply Last reply Reply Quote 0
        • K
          kussg last edited by

          have you tried to use QPixmap::transform method ?

          From the Qt docs, we can invoke QTransform::rotate (90), and QTrasformationMode with Qt::SmoothTransformation using bilinear filtering.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post