PDA

View Full Version : How to draw rectangle with moveable edge



sagirahmed
2nd July 2010, 06:02
Hi,

I want to create an application that have one main rectangle and it consist more than one rectangle inside the main rectangle with moveable edge and also want to shift one inner rectangle up and down inside the main rectangle. Just like the DiskUtily but diskutily does not have the shift facility.


Thanks & Regards

Sagir Ahmed

aamer4yu
2nd July 2010, 06:31
I guess what you need is QListWidget. The items can be moved within the list, you will only need to set some property.

Have a look at QListWidget and QListWidgetItem

sagirahmed
2nd July 2010, 07:05
I want to draw rectangles with moveable edge, I think it is used for item . Any other class can be used like QSplitter or QDockWidget. I want to know that can we move widget in QSplitter . I can able to resize the widget in Qsplitter but not able to shift or move up and down

tbscope
2nd July 2010, 07:09
Use QGraphicsView

sagirahmed
2nd July 2010, 07:21
I have draw rectangles using paintEvent but not able to move the edge and also not able to shift up and down.