How to maintain the current index of QTableView
Solved
General and Desktop
-
When QTableView loses focus, its current index will become -1. How can I maintain the current index after losing focus?
Defining new variables can be used to save data for the current index, but I don't think it's a good idea. Does QTableView have any related properties?Best Regards!
-
@tovax said in How to maintain the current index of QTableView:
When QTableView loses focus, its current index will become -1.
I doubt that.
-
@Christian-Ehrlicher
Thank you for your reply. With your reminder, I found the cause of the error after checking: duplicate construction of a singleton class.
Best Regards! -
T tovax has marked this topic as solved on