Obsolete Members for QQmlListReference
QQmlListReference 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
공개 함수
(since 6.1, deprecated) | QQmlListReference(const QVariant &variant, QQmlEngine *engine) |
(deprecated) | QQmlListReference(QObject *object, const char *property, QQmlEngine *engine) |
멤버 함수 설명
[since 6.1, deprecated] QQmlListReference::QQmlListReference(const QVariant &variant, QQmlEngine *engine)
이 함수는 더 이상 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` QQmlEngine ` 인수가 없는 생성자를 사용하십시오.
QQmlListProperty 를 포함하는 QVariant variant 로부터 QQmlListReference를 생성합니다. variant 에 list 속성이 포함되어 있지 않으면 유효하지 않은 QQmlListReference가 생성됩니다. 참조가 생성된 후 list 속성을 소유한 객체가 소멸되면, 해당 참조는 자동으로 유효하지 않게 됩니다. 즉, 객체가 삭제된 후에도 QQmlListReference 인스턴스를 유지하는 것은 안전합니다.
engine 는 사용되지 않습니다.
이 함수는 Qt 6.1에서 도입되었습니다.
[deprecated] QQmlListReference::QQmlListReference(QObject *object, const char *property, QQmlEngine *engine)
이 함수는 더 이상 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 ` QQmlEngine ` 인자가 없는 생성자를 사용하십시오.
object 의 property 에 대한 QQmlListReference를 생성합니다. property 가 리스트 속성이 아닌 경우, 유효하지 않은 QQmlListReference가 생성됩니다. 참조가 생성된 후 object 가 소멸되면, 해당 참조는 자동으로 유효하지 않게 됩니다. 즉, object 가 삭제된 후에도 QQmlListReference 인스턴스를 보유해도 안전합니다.
engine 는 사용되지 않습니다.
© 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.