Solved QSqlTableModel modifying a table glitch
-
Screenshot 2019-03-17 at 15.02.34
So when creating a program to edit the contents of a database table then the value that is entered is white and barely visible. How do I fix this?
-
Hi
Do you have a delegate that could interfere. ? -
Not that I know of.
-
Hi
well QSqlTableModel would not do so by itself so
unless you are using setWiget/ delegates or custom view, I have no idea
where the white text would come from.
Do you use stylesheets on the app? -
For some reason my stylesheet makes it not work correctly, even though I didn't find anything about item delegate in there.
-
I guess I will rewrite my stylesheet and debug what might break the table behaviour.
-
@Fuchsiaff
Its hard to guess at with no code but it seems that something is altering the text color
for the item. And a good guess would be a stylesheet.