Click here to Skip to main content
11,707,470 members (73,193 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ QT QT-Creator
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 3-May-13 22:20pm
hor_313652
Comments
Sandeep Mewara at 4-May-13 7:04am
   
Tried anything so far?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
hor_313 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 156
1 Sergey Alexandrovich Kryukov 145
2 Mika Wendelius 140
3 chainerlt 110
4 ppolymorphe 104
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,806
4 Mika Wendelius 3,706


Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 4 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100