Answer the question
In order to leave comments, you need to log in
How in QSqlTableModel to know if a column is boolean or not?
I work with sqlite3, I need that in the column where boolean is displayed not 0 or 1, but a tick or its absence.
I need to find out the presence of boolean in various tables, it will not work to bind to a specific column number.
Answer the question
In order to leave comments, you need to log in
Check all values in a column. If they are 1 or 0, then boolean, show the checkbox. Otherwise show values.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question