Obsolete Members for QSqlField
QSqlField クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
(deprecated in 6.0) | QSqlField(const QString &fieldName, QVariant::Type type, const QString &table = QString()) |
(deprecated in 6.8) void | setSqlType(int type) |
(deprecated in 6.0) void | setType(QVariant::Type type) |
(deprecated in 6.0) QVariant::Type | type() const |
(deprecated in 6.8) int | typeID() 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.8] void QSqlField::setSqlType(int type)
この関数はバージョン6.8以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
この内部値は、もはや使用されていません。
[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 に格納するには大きすぎる数値は、通常、精度の低下を防ぐために文字列として格納されます。
setType() およびmetaTypeも参照してください 。
[deprecated in 6.8] int QSqlField::typeID() const
この関数はバージョン 6.8 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
この内部値は、もはや使用されていません。
フィールドの型 ID を返します。
返された値が負の場合、その情報はデータベースから取得できないことを意味します。
© 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.