Unsolved Qt 6.0 adaptation: warning: 'QSqlField' is deprecated: Use the constructor using a QMetaType instead. How to solve?
-
Hello all!
How to solve this kind of Qt 6.0 issue:warning: 'QSqlField' is deprecated: Use the constructor using a QMetaType instead [-Wdeprecated-declarations] QSqlField fld(q.value(1).toString(), qGetColumnType(typeName), tableName);
-
Hi,
The answer is in the warning, see QSqlField's second constructor.
-
Dupe of https://forum.qt.io/topic/125644/qt-6-0-adaptation-warning-string-is-deprecated-use-qmetatype-type-instead-how-to-solve ... wonder why it's so hard to read the error message. It contains the answer...