qt-interest@trolltech.com
[Top] [All Lists]

QTableWidget, excel like QTableWidgetItem cell

Subject: QTableWidget, excel like QTableWidgetItem cell
From: "qt interest"
Date: Thu, 9 Mar 2006 17:18:10 +0100
Hi,

I would like to make table cells like Microsoft excel, with a rectangle border and a "+" when the user select a cell :
 
---------
|       |
--------+

I don't know which function i have to redefine :
Is it this function ?
void QTableView::paintEvent ( QPaintEvent * event )  [virtual protected]

Because the TableWidget that I used, is in a UI file, so i can't acces to this protected function .

So i don't know witch function to use, to repaint the selection cell renderer.

Thanks




<Prev in Thread] Current Thread [Next in Thread>