Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I Want to build a Qt GUI form with main window , then load an image with a button in form and then resize the image to the height and weight that the user inputs .

Which widget or elements I need to push to my form in design mode? And where I must coding for that I mentioned above ?

I am really newbie in Qt and also I am looking for a good tutorial for that!

Thanks a lot
Posted
Comments
Sandeep Mewara 4-May-13 7:04am    
Tried anything so far?

1 solution

There is a huge amount of material on the Qt web site[^], including video training.

In terms of basic image resizing, you could probably use the QLabel class with QPixmap, a simple example is here[^]. And the QPixmap docs are here[^]. I'm sure there is plenty of information there to do what you want with your image.
 
Share this answer
 
Comments
hor_313 4-May-13 7:39am    
I tried that codes in stackoverflow you have linked but it didn't work

plese see this :
http://www.codeproject.com/Questions/587871/Howpluscanplusipluswriteplustheplusimagepluspathpl
jsolutions_uk 4-May-13 7:50am    
I've replied to your new question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900