tags:

views:

57

answers:

3

how can i get the image size when i load image ( width, height )

+2  A: 

QImage has a method called size(). Is that what you're asking?

JimDaniel
thanks,is not the answer i look after. if i open a image how can get the image size
Parvesh
A: 

QImage::width()

QImage::height()

You really should read the documentation.

Jim's method works as well, just call width and height on the returned size.

Adam W
A: 

But how? I know the function QSize.

parvesh