QTableView
-
When I use QSqlTableModel as the model of QTableView, all the values in the first column flash by, and then only the first value is displayed.
When the mouse hovers over other rows, the value of the first column of that row will be displayed.
How can I make the first column always displayed? -
When I use QSqlTableModel as the model of QTableView, all the values in the first column flash by, and then only the first value is displayed.
When the mouse hovers over other rows, the value of the first column of that row will be displayed.
How can I make the first column always displayed?@cc_cc said in QTableView:
all the values in the first column flash by
When the mouse hovers over other rows, the value of the first column of that row will be displayed.
Welcome. I for one do not understand what you are saying, especially about "flashing by", when it happens, what it looks like, etc.? This implies something is changing, once a
QTableView
is displaying data nothing should be changing. There should be no issue about displaying any columns from the table. Your code should only be a few lines long to test a minimal example.