I have a sql table with a column of type integer allowing null values and I use a QSqlTableModel to manipulate its data.
I am facing the following problem: I want to insert a Null value using the QSqlTableModel setData function. When I do this, QSqlTableModel translates my Null into 0, its default value (Qt QTBUG-1512), which is not what I want (0 has a specific meaning in my application).
How can I set a null value?
Any hint will be greatly appreciated.




Reply With Quote
Bookmarks