Obsolete Members for QSqlField
クラスQSqlField の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
パブリック関数
(deprecated in 6.0) | QSqlField(const QString &fieldName, QVariant::Type type, const QString &table = QString()) |
(deprecated in 6.0) void | setType(QVariant::Type type) |
(deprecated in 6.0) QVariant::Type | type() const |
メンバ関数ドキュメント
[deprecated in 6.0]
QSqlField::QSqlField(const QString &fieldName, QVariant::Type type, const QString &table = QString())
この関数は6.0から非推奨となった。新しいコードでは使わないことを強くお勧めします。
代わりにQMetaType を取るコンストラクタを使用してください。
これはオーバーロードされた関数です。
table のバリアント型type のfieldName という空のフィールドを構築します。
[deprecated in 6.0]
void QSqlField::setType(QVariant::Type type)
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにsetMetaType() を使用してください。
フィールドのバリアント型をtype に設定します。
[deprecated in 6.0]
QVariant::Type QSqlField::type() const
この関数は6.0から非推奨となった。新しいコードでは使用しないことを強く推奨する。
代わりにmetaType() を使用してください。
データベースに格納されているフィールドの型を返します。long intやdoubleに格納するには大きすぎる数値は、精度の低下を防ぐために通常は文字列として格納されます。
© 2025 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.