contactDetail QML Value Type
contactDetail 유형은 전화번호나 웹사이트 주소와 같은 연락처 세부 정보를 저장합니다. 더 보기...
| Import Statement: | import QtLocation 6.12 |
| 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 등 연락처 세부 정보의 값을 저장합니다.
© 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.