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`로 설정합니다.

type() 및 metaType도 참조하십시오 .

[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.