PDA

View Full Version : Grid control



sagirahmed
8th October 2010, 07:28
Hi All,

I want to create a widget that will show rectangle in a grid form(row & column) of different colors with scrolling to move up and down. The number of rectangle is get at run time whether it is a 1 or 100000.

Can you suggest which control is better for this.

Thanks & regards

wysota
8th October 2010, 13:24
It depends whether you want it to do anything else than showing squares. If yes then you'll probably want to use QTableView or QTableWidget, if not then probably subclassing QAbstractScrollArea or using QGraphicsView will be the best approach.