PDA

View Full Version : how to get image height and width in qt



iswaryasenthilkumar
31st March 2015, 05:51
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

label->setPixmap(QPixmap::fromImage(ImageToLoad.scaled(10 25,1025)));

nw i want to read each images scaled values assigned to this code,i dont know how to read images of height and width :confused: can any one give me suggestion for this
Thanks in advance:)

wysota
31st March 2015, 06:52
QImage::width(), QImage::height(), QPixmap::width(), QPixmap::height()