It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its开发者_运维技巧 current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its开发者_运维技巧 current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
how can i get the image size when i load image ( width, height )
QImage has a method called size(). Is that what you're asking?
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.
精彩评论