Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.10
-
None
-
f744cef06 (dev), 97880102d (6.9)
Description
QSqlQuery has been made movable in 6.2, however in Qt 6 for SC/BC reasons we can't get rid of its copy operations. The copies themselves have been deprecated.
While we no longer copy it around in Qt, QMetaType extracts the copy operations because QSqlQuery is a Q_GADGET. This raises a warning when building Qt itself.
I propose to disable the extraction of copies from QSqlQuery. It doesn't need to be "clean" – just a local workaround to suppress the warning. It would still be a minor SIC if someone is copying QSqlQueries via QMetaType, so likely a dev-only change.