Results 1 to 2 of 2

Thread: trying to adjust size of image in a qlabel

  1. #1
    Join Date
    Aug 2009
    Posts
    38
    Thanks
    3

    Default trying to adjust size of image in a qlabel

    Hi,

    I would like to adjust an image in a qlabel but I can't. I do this but I have an error:

    Qt Code:
    1. QPixmap imagen("/home/david/proyectos_python/larguero.jpg");
    2. etiqueta->setPixmap(imagen,Qt::IgnoreAspectRatio);
    To copy to clipboard, switch view to plain text mode 

    Any help please?
    Many thanks and sorry for my english!

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: trying to adjust size of image in a qlabel

    So what is your error?
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. QLabel size, for image display
    By C167 in forum Qt Programming
    Replies: 13
    Last Post: 25th October 2013, 16:09
  2. Image Size Not Right
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th April 2009, 09:11
  3. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  4. Replies: 13
    Last Post: 18th February 2008, 00:20
  5. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57

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.