PluginParameter QML Type

플러그인 파라미터 유형은 위치 플러그인에 대한 파라미터를 설명합니다. 더 보기...

Import Statement: import QtPositioning
Since: QtPositioning 5.14

속성

상세 설명

플러그인 파라미터 객체는 플러그인에 어떤 종류의 파라미터를 제공하는 데 사용됩니다. 일반적으로 이러한 매개변수에는 서비스 액세스를 위한 애플리케이션 토큰, 네트워크 액세스에 사용할 프록시 서버, 직렬 GPS 수신기가 연결되는 직렬 포트 등의 세부 정보가 포함됩니다.

이러한 파라미터를 설정하려면 PositionSource 개체와 같이 플러그인 파라미터를 구성 개체로 받아들이는 요소 내부에 플러그인 파라미터를 선언하고 namevalue 속성의 값을 설정합니다. 각 플러그인의 유효한 파라미터 이름 목록은 포지션 플러그인의 기본 플러그인 페이지에서 확인할 수 있습니다.

사용 예

다음 예는 데이터 소스를 지정하는 nmea.source 매개변수를 사용하여 NMEA 플러그인을 인스턴스화하는 방법을 보여줍니다.

PositionSource {
    name: "nmea"
    PluginParameter { name: "nmea.source"; value: "serial:/dev/ttyACM0" }
}

속성 문서

name : string

이 속성은 플러그인 매개변수의 이름을 단일 형식의 문자열로 저장합니다. 이 속성은 일회성 속성입니다.


value : QVariant

이 속성은 다양한 유형의 값(변형)을 지원하는 플러그인 매개변수의 값을 보유합니다. 이 속성은 일회성 속성입니다.


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