PluginParameter QML Type
PluginParameter 유형은 위치 플러그인의 매개변수를 정의합니다. 더 보기...
| Import Statement: | import QtPositioning |
| Since: | QtPositioning 5.14 |
속성
상세 설명
PluginParameter 객체는 플러그인에 특정 유형의 매개변수를 제공하기 위해 사용됩니다. 일반적으로 이러한 매개변수에는 서비스에 액세스하기 위한 애플리케이션 토큰, 네트워크 액세스에 사용할 프록시 서버, 직렬 GPS 수신기가 연결된 직렬 포트 등의 세부 정보가 포함됩니다.
이러한 매개변수를 설정하려면, ` PositionSource ` 객체와 같이 구성 객체로 플러그인 매개변수를 허용하는 요소 내부에서 `PluginParameter`를 선언하고, ` name ` 및 ` value ` 속성의 값을 설정하면 됩니다. 각 플러그인에 대해 유효한 매개변수 이름 목록은 위치 플러그인의 기본 플러그인 페이지에서 확인할 수 있습니다.
사용 예
다음 예제는 데이터 소스를 지정하는 nmea.source 매개변수를 사용하여 NMEA 플러그인을 인스턴스화하는 방법을 보여줍니다.
PositionSource {
name: "nmea"
PluginParameter { name: "nmea.source"; value: "serial:/dev/ttyACM0" }
}속성 설명서
name : string
이 속성은 플러그인 매개변수의 이름을 단일 서식이 지정된 문자열로 저장합니다. 이 속성은 한 번만 쓰기 가능한 속성입니다.
value : QVariant
이 속성은 다양한 유형의 값(variant)을 지원하는 플러그인 매개변수의 값을 저장합니다. 이 속성은 한 번만 쓰기 가능한 속성입니다.
© 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.