[Qt-interest] A tough question about QTableWidget for the gurus.

Mohammed Sameer msameer at foolab.org
Sat Apr 4 18:10:41 CEST 2009


On Sat, Apr 04, 2009 at 11:50:14PM +0800, LIM Fung-Chai wrote:
> Hi Cuters,
> 
> I want to create a QTableWidget where some of the cells
> (QTableWidgetItem) may be QTableWidget's themselves while most of the
> cells are the "normal" types.  Therefore, you will see a spreadsheet
> where some of the cells contain "mini" spreadsheets.
> 
> In general, I would like to make some of the cells to be any QWidget
> subclass as I also want to make some of the cells to be QLabel's so
> that I can have some fancy html text rendered in those cells.

Perhaps that's what you need:
http://doc.trolltech.com/4.5/qtablewidget.html#setCellWidget

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org



More information about the Qt-interest-old mailing list