Results 1 to 3 of 3

Thread: question about present a picture using QPixmap

  1. #1

    Question question about present a picture using QPixmap

    I use the QLabel::setPixmap to present a picture.
    My question is :
    how to stretch (zoom in or zoom out) the picture automatically (or simply) to accommodate the size of QLabel ?

    thanks!

  2. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: question about present a picture using QPixmap

    QLabel::setScaledContents(bool scaled);

  3. #3

    Default Re: question about present a picture using QPixmap

    really a quick answer, thanks!.
    I'll try it.

Similar Threads

  1. QPixmap scaling question
    By eric in forum Qt Programming
    Replies: 6
    Last Post: 20th November 2007, 17:40

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.