PDA

View Full Version : Best way to implement a table in a QGraphicsScene?



roband915
31st March 2011, 10:43
In my QGraphicsScene I would like to have a movable item with n rows and 3 columns. the top row should only contain one big row that covers the three columns below.
Is this possible with qt? I've been looking at QTableView and QTableWidgetItem but I don't really understand the concept of them.

wysota
31st March 2011, 11:28
Have a look at QGraphicsGridLayout

roband915
31st March 2011, 12:53
I've looked into QGraphicsGridLayout and the thing is that I only plan to have simple text in my columns. Is the GridLayout even then the best alternative?

wysota
31st March 2011, 12:56
It's certainly better than QTableWidget.