PDA

View Full Version : How to create user movable and resizable image using QLabel ?



shanmuga2020
11th April 2015, 07:22
Hi Friends.,
I am new in Qt, In my project i want to create user movable and resizable image in the QWidget, i used QLabel for moving the label ( drag ) and could not find how to set the QLabel in resizable.
I mean user will select the Image and increase and decrease the image width and height using mouse. I need help for done this resizable options. i could not find any solutions.

Thanks in advance.

wysota
11th April 2015, 07:39
QLabel is not the best suited widget to implement what you want.

shanmuga2020
11th April 2015, 07:50
Thanks for your reply.,

Which one is best ? can you suggest me which one is best and how to implement my requirement ?

wysota
11th April 2015, 08:43
Graphics View is probably a better choice.

shanmuga2020
11th April 2015, 09:19
Thanks for your valuable suggestion.,

If is possible please give any example link or tutorial link it will very help for me, because i am new to qt. I don't familiar with GraphicsViews.

Thanks in advance.,

wysota
11th April 2015, 12:32
Open up the help pane in Qt Creator, on the top choose "Index" from the drop-down list and enter "Graphics View" in the edit box.