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.