PDA

View Full Version : Inserting Table



dreamer
12th May 2008, 21:27
What kind of object can i add to my scene, to create a table with X row and Y colum???
I'd like to resize the column and the row length throw the mouse.......

wysota
12th May 2008, 22:35
There is no such object ready. You'd have to create your own or insert a QTableWidget into the scene as a proxy widget (available since 4.4.0).

dreamer
12th May 2008, 22:43
You'd have to create your own


How? With a polygonitem?

wysota
13th May 2008, 06:50
With a rect item, I guess.

dreamer
15th May 2008, 09:12
Can anyone post me an example that creates a table with 2 columns , with the line dividing the 2 columns movable inside the table......thanks.

dreamer
16th May 2008, 10:10
How do you think is better to simulate a row with 2 column??
With a custom Qgraphicsrect that contains other 2 QGraphicsrect item, or a QGraphicsRect containing a QGraphicsLineItem?????
I will able to resize the column width.......i perhaps guess that moving a qgraphicslineitem is more easy than resizing two rect in the same time.....