PDA

View Full Version : QTableWidget : hidding a column ?



Nyphel
2nd April 2007, 14:31
Hello,

I would like to know if it is possible to hide a column of a QTableWidget, without using the QTableView ?

Actually I use a function that add rows and data to my QTableWidget, so I could disable or hide the cells... But setEnable(bool) and setVisible(bool) aren't defined for QtableWidgetItem.

Have you got an idea ? :)



PS : In fact I need to hide the data of the column, because it contains passwords... But I can't replace the data, cause the user must be able to save it. So I have to hide it, or to change the font with "****"; but I didn't find how to do it :)

jpn
2nd April 2007, 14:33
I would like to know if it is possible to hide a column of a QTableWidget, without using the QTableView ?
QTableWidget is a QTableView. Use QTableView::setColumnHidden().

Nyphel
2nd April 2007, 14:35
Ups... Thanks JPN :o