Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can i rotate a pixmap from horizontally to vertically?
Forum Updated to NodeBB v4.3 + New Features

How can i rotate a pixmap from horizontally to vertically?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.3k Views 1 Watching
  • 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 Offline
    P Offline
    pratik041
    wrote on last edited by
    #1

    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
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

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


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kussg
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved