PDA

View Full Version : Cannot find line or rectangle widget



Kapil
23rd February 2006, 11:02
Hi,

I have downloaded the qt-win-opensource-4.1.0-mingw.exe and have installed it.
I want to create a GUI which comprises of drawing objects, like lines, rectangles, circles, triangles etc...
But then when i open the QT Designer i don't get the option for them. Now how do i get them. In the Display widget i get the horizontal and vertical lines widger but do not get it for the rectangle, circle, triangle etc...

Please tell me from where can i get them in the QT Designer...

Thank you,
Kapil

jpn
23rd February 2006, 11:06
You can't accomplish custom drawing/painting in designer.

You might wanna take a look at basic drawing example (http://doc.trolltech.com/4.1/painting-basicdrawing.html).

Kapil
23rd February 2006, 11:43
You can't accomplish custom drawing/painting in designer.

You might wanna take a look at basic drawing example (http://doc.trolltech.com/4.1/painting-basicdrawing.html).

hi,

i went thru the example.. this means that i will have to hard code them in my ui file in order to make them appear on screen...
there is no other way thru which i can place them like i do it with buttons or text edits...

kapil

wysota
23rd February 2006, 12:01
You can use labels and assign pixmaps to them.