QTableView loses focus for no reason

722 views Asked by At

I have been trying to figure out why this happens but in vain. I have a QTableView that has different delegates (QStyledItemDelegate inherited classes) for each column. I tested the delegates in another view and they work fine.

My problem is that when i click a cell in the QTableView, it selects the cell and starts editing but immediately after that it loses focus causing the editor to close.

I could have included code but it's rather a lot, so i choose not to because i dont think it will be helpful.

My question is, how can i detect what makes my QTableView lose focus when i click on a cell?

Any help is appreciated.

0

There are 0 answers