Results 1 to 5 of 5

Thread: Scaling the image in GraphicsView and Scene is cutting the right border of image

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Scaling the image in GraphicsView and Scene is cutting the right border of image

    Now it is working! I have set the width too small for images with big width. That is why the right border of the image was cut.

    So I first calculate the ratio of width and height, and scale on the height or the width, depending of the condition.

    Thanks for the help, the scaling on the graphicsview and not on the scene was useful.

  2. The following user says thank you to icedecker for this useful post:


Similar Threads

  1. Scaling window with image
    By danioto in forum Newbie
    Replies: 6
    Last Post: 20th October 2012, 14:58
  2. Non-scaling image added to scene
    By Thomas_Lerman in forum Qt Programming
    Replies: 10
    Last Post: 1st February 2011, 22:35
  3. QWebView and image scaling
    By naresh in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2010, 04:38
  4. Border cutting with QGraphicsSvgItem
    By akiross in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 10:12
  5. Fast image drawing/scaling in Qt 3.3
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 11:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.