Deselect text on a QTableWidgtem cell upon double clicking
Everytime I double click a cell that belongs to a QTableWidget the cell's entire text is selected. I have tried to disable this so that when I double a cell the text editor opens up for editing with NO text selected, but I haven't been successful. This is apparently the default behavior. How can i change this?
I'm using Qt-4.6.0 on Linux.
Thanks!
Re: Deselect text on a QTableWidgtem cell upon double clicking
I finally figured out how to do this. I did it by capturing the Qt::FocusIn event on the delegate's eventFilter() function. There I used the pointer to the editor to call the deselect() function.