P
P
Pavel Mikhalovsky2017-07-07 12:39:16
Database
Pavel Mikhalovsky, 2017-07-07 12:39:16

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

1 answer(s)
K
Konstantin Stepanov, 2017-07-07
@koronabora

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 question

Ask a Question

731 491 924 answers to any question