Results 1 to 2 of 2

Thread: how to get image height and width in qt

  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to get image height and width in qt

    am having multiple images each images having different height and width.i want to display each images as per its height and width. i did common resolution like this
    Qt Code:
    1. label->setPixmap(QPixmap::fromImage(ImageToLoad.scaled(1025,1025)));
    To copy to clipboard, switch view to plain text mode 
    nw i want to read each images scaled values assigned to this code,i dont know how to read images of height and width can any one give me suggestion for this
    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to get image height and width in qt

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    iswaryasenthilkumar (1st April 2015)

Similar Threads

  1. Pusbutton height and width
    By seany in forum Qt Programming
    Replies: 6
    Last Post: 7th June 2013, 06:35
  2. Replies: 1
    Last Post: 5th March 2013, 07:04
  3. Widget Height and Width
    By in_dbasu in forum Qt Programming
    Replies: 3
    Last Post: 11th August 2011, 08:44
  4. Replies: 3
    Last Post: 13th May 2010, 08:20
  5. width and height of QTabWidget
    By chikkireddi in forum Qt Programming
    Replies: 6
    Last Post: 29th October 2007, 13:53

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.