How to prevent moving cell (QtableView) if the data is invalid?
General and Desktop
3
Posts
2
Posters
1.2k
Views
1
Watching
-
Hi,
I used a QValidator to check the data in a table cell, and if invalid data entered a message popup but after that table column moved to right (default tableView behavior). How to prevent leaving the cell if the data is invalid?
I tried to get currentIndex().column(); to get the column number, but it always returns -1