Hi,
I loaded image using QPixmap. Now i want to resize that image, for resizing it i used QPixmap::scaled() method. but it does not do anything.
Then how can i resize my image???
I am using Qt for S60 4.5.0-garden release.
Thanks,
Hi,
I loaded image using QPixmap. Now i want to resize that image, for resizing it i used QPixmap::scaled() method. but it does not do anything.
Then how can i resize my image???
I am using Qt for S60 4.5.0-garden release.
Thanks,
QPixmap::scaled() returns a copy of the pixmap which is resized to the new dimensions. Are you assuming that the existing image itself is resized?
Mithin
www.mithin.in
kamlesh.sangani (14th May 2009)
QPixmap::scaled returns scalde pixmap, so you should write something like this
Qt Code:
... label->setPixamp(scaledPixmap); ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Thanks for reply.
I already tried something like
Qt Code:
scaledPixmap.Load();To copy to clipboard, switch view to plain text mode
But it did not helped me. BTW now issue is resolved.
if you want to resize image than i will you suggest you to visit the below link
http://www.raiseitsolutions.com/foru...ic.php?f=4&t=3
please visit the link, here you can know about how to resize image.
thank you very much.
Bookmarks