Obsolete Members for QSqlQuery

以下成員源於類 QSqlQuery 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(deprecated in 6.2) QSqlQuery (const QSqlQuery & other )
(deprecated in 6.2) QSqlQuery & operator= (const QSqlQuery & other )

成員函數文檔編製

[deprecated in 6.2] QSqlQuery:: QSqlQuery (const QSqlQuery & other )

This function is deprecated since 6.2. We strongly advise against using it in new code.

構造副本為 other .

QSqlQuery cannot be meaningfully copied, and therefore will no longer be copiable in Qt 7. Prepared statements, bound values and so on will not work correctly, depending on your database driver (for instance, changing the copy will affect the original). Treat QSqlQuery as a move-only type instead.

[deprecated in 6.2] QSqlQuery &QSqlQuery:: operator= (const QSqlQuery & other )

This function is deprecated since 6.2. We strongly advise against using it in new code.

賦值 other 到此對象。

QSqlQuery cannot be meaningfully copied, and therefore will no longer be copiable in Qt 7. Prepared statements, bound values and so on will not work correctly, depending on your database driver (for instance, changing the copy will affect the original). Treat QSqlQuery as a move-only type instead.