PDA

View Full Version : How to deactivate the marking in a QTable?



mantra
2nd March 2008, 16:33
Hi,
I'm using a Qt::Table with Qt3. But I'm wondering how I could deactivate the marking of cells if you click with the mouse and then throw. I already deactivated the focusstyle: table.setFocusStyle(Qt::Table::NoSelection)

But the marking is still possible... I mean that what's blue in this screenshot:
http://img521.imageshack.us/img521/4684/tabletk7.png

Any way to deactivate the ability that one can do this?

wysota
2nd March 2008, 16:45
setSelectionMode(QTable::NoSelection);

mantra
2nd March 2008, 16:51
Thank you very much, this works :)