Obsolete Members for QQmlListProperty

QQmlListProperty 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.

공개 함수

(deprecated) QQmlListProperty(QObject *object, QList<T *> &list)

멤버 함수 문서

[implicit, deprecated] QQmlListProperty::QQmlListProperty(QObject *object, QList<T *> &list)

이 함수는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

기존의 ` QList ` list`에서 `QQmlListProperty` 값을 생성하기 위한 편의 생성자입니다. 리스트를 소유하는 ` object `와 ` list ` 자체는 반드시 제공되어야 하며, 이를 참조하는 `QQmlListProperty`를 보유하는 동안에는 유효한 상태로 유지되어야 합니다.

이 생성자는 count(), at(), clear(), append()를 사용하여 Qt 5.15에서 도입된 removeLast() 및 replace() 메서드를 합성합니다. 이 과정은 속도가 느립니다. 리스트를 비우는 것 이상의 조작을 수행할 계획이라면, 이러한 메서드를 명시적으로 제공해야 합니다.

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