Results 1 to 6 of 6

Thread: larger(not to scale) a exist QPixmap and paint more thing on the blank space

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Nanjing, China
    Posts
    66
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default larger(not to scale) a exist QPixmap and paint more thing on the blank space

    QPixmap.transformed(QTransform::fromTranslate(x,y) ) did not have a good result.
    Is there a way?
    Jerry

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: larger(not to scale) a exist QPixmap and paint more thing on the blank space

    Have you tried QPixmap::scaled(), QPixmap::scaledToWidth() and QPixmap::scaledToHeight() ?

    Where do you want to put the larger QPixmap? On a QLabel? Then just have a look at QLabel::scaledContents()

Similar Threads

  1. Replies: 6
    Last Post: 7th November 2010, 14:17
  2. Blank space at right side of plot
    By liversedge in forum Qwt
    Replies: 2
    Last Post: 14th August 2010, 13:02
  3. how to change the line space in QGraphicsTextItem Paint()
    By goldhappywang in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2009, 01:42
  4. Replies: 1
    Last Post: 26th July 2009, 15:08
  5. QPixmap xx.scaledToWidth dont Scale but load...
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 25th June 2006, 23:21

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.