contactDetail QML Value Type
연락처 세부 정보 유형에는 전화번호나 웹사이트 주소와 같은 연락처 세부 정보가 들어 있습니다. 더 보기...
Import Statement: | import QtLocation 6.8 |
Since: | QtLocation 5.5 |
속성
상세 설명
contactDetail은 Place 에 연락하는 방법에 대한 단일 세부 정보를 제공합니다. contactDetail은 연락 방법을 설명하는 현지화된 문자열인 label 과 실제 연락 세부 정보를 나타내는 value 로 구성됩니다.
예제
다음 예는 자바스크립트에서 단일 전화번호를 장소에 할당하는 방법을 보여줍니다:
function writeSingle() { var phoneNumber = Qt.createQmlObject('import QtLocation; ContactDetail {}', place); phoneNumber.label = "Phone"; phoneNumber.value = "555-5555" place.contactDetails.phone = phoneNumber; }
다음은 자바스크립트에서 한 장소에 여러 개의 전화번호를 할당하는 방법을 보여줍니다:
function writeMultiple() { var bob = Qt.createQmlObject('import QtLocation; ContactDetail {}', place); bob.label = "Bob"; bob.value = "555-5555" var alice = Qt.createQmlObject('import QtLocation; ContactDetail {}', place); alice.label = "Alice"; alice.value = "555-8745" var numbers = new Array(); numbers.push(bob); numbers.push(alice); place.contactDetails.phone = numbers; }
QQmlPropertyMap 의 제한으로 인해 QML에서 연락처 세부 정보를 선언적으로 지정할 수 없으며 JavaScript를 통해서만 수행할 수 있습니다.
속성 문서
label : string |
이 속성에는 연락처 세부 정보를 설명하는 레이블이 있습니다.
이 레이블은 잠재적으로 현지화될 수 있습니다. 언어는 이를 설정하는 엔티티에 따라 달라지며, 일반적으로 Plugin. Plugin::locales 속성은 어떤 언어가 사용되는지 정의합니다.
value : string |
이 속성에는 전화번호, 이메일 주소, 웹사이트 URL 등 연락처 세부정보의 값이 저장됩니다.
© 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.