Results 1 to 4 of 4

Thread: How to get Scaled size

  1. #1
    Join Date
    Mar 2009
    Location
    Nashville Tn.
    Posts
    53
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to get Scaled size

    How do you get the new height and width of a scaled qgraphicspixmapitem?
    Last edited by rogerholmes; 7th March 2010 at 05:23.

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

    mhoover (20th March 2010)

  3. #2
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

  4. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get Scaled size

    boundingRect() * scaleFactor

  5. The following user says thank you to aamer4yu for this useful post:

    mhoover (20th March 2010)

  6. #4
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to get Scaled size

    Thanks aamer4yu!

    I thought (mistakenly) the x/y/width/height were changed by the scale, but they weren't.

    This causes my code to work now.

Similar Threads

  1. Font is scaled
    By lni in forum Qt Programming
    Replies: 11
    Last Post: 30th January 2009, 21:54
  2. bad sceneRect with scaled text
    By koosh in forum Qt Programming
    Replies: 14
    Last Post: 10th July 2008, 19:29
  3. How to put scaled QGraphicsItems next to eachother
    By profoX in forum Qt Programming
    Replies: 6
    Last Post: 3rd June 2008, 07:44
  4. poor Quality after QPixmap::scaled()
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2007, 21:43
  5. QImage::scaled() error in Qt4/e
    By Neo in forum Qt Programming
    Replies: 2
    Last Post: 7th April 2006, 06:15

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.