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)

この関数はバージョン 6.2 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

other のコピーを作成します。

QSqlQueryは実質的にコピーできないため、Qt 7ではコピーできなくなります。データベースドライバによっては、プリペアードステートメントやバインドされた値などが正しく動作しなくなります(例えば、コピーを変更すると元にも影響が及ぶなど)。代わりに、QSqlQueryを「移動専用型」として扱ってください。

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

この関数はバージョン 6.2 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

このオブジェクトにother を割り当てます。

QSqlQuery QSqlQuery は意味のあるコピーが不可能であるため、Qt 7 ではコピーできなくなります。データベースドライバによっては、プリペアードステートメントやバインドされた値などが正しく動作しなくなります(例えば、コピーを変更すると元の値にも影響が及ぶなど)。代わりに、 を「移動専用型」として扱ってください。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.