Perspective View

  • Hi Guys,

    It has been roughly a month I have started working with Qt. Right now I am trying to vie an image in perspective view. Lets say I want to rotate the image in along the Y axis, I am using the Qtransform function to rotate.. here is the code snippet.
    int angle=20;
    QTransform transform;
    transform.rotate(angle, Qt::YAxis);
    image = QImage(":/images/livingroom.jpg");
    image = image.scaledToWidth(this->width());
    image = image.transformed(transform);

    But this is not producing the desired results. The result image is not a perspective view. Can anybody please help me in achieving this?

  • Moderators

    Hi sarthak,

    Please don't post the same thing multiple times. Continue all discussion at

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.