Results 1 to 3 of 3

Thread: Resizing a QLabel with a pimap. Won't shrink!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Resizing a QLabel with a pimap. Won't shrink!

    A more advanced way to solve your problem can be create a subclass of QLabel and to reimplement the QWidget::resizeEvent method in way to use a down-sized version of pixmap when the qlabel becomes smaller than the pixmap.
    Last edited by mcosta; 17th September 2010 at 12:03. Reason: updated contents
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. Replies: 3
    Last Post: 2nd March 2010, 20:58
  2. Prevent a QLabel resizing the parent QWidget
    By danc81 in forum Qt Programming
    Replies: 6
    Last Post: 10th November 2009, 20:54
  3. Replies: 1
    Last Post: 29th September 2009, 19:44
  4. Saving Pimap to Bitmap
    By dbrmik in forum Newbie
    Replies: 3
    Last Post: 26th November 2008, 13:34
  5. Shrink QMainWindow to Minimum Size
    By kloffy in forum Qt Programming
    Replies: 4
    Last Post: 17th February 2008, 17:54

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.