このページでは

icon QML Value Type

「アイコンの種類」は、その場所のアイコンを表します。詳細...

Import Statement: import QtLocation 6.12
Since: QtLocation 5.5

詳細説明

アイコンの一般的な使用方法は、url() 関数を使用して希望するアイコンサイズを指定することです。

アイコンは通常、バックエンドに依存します。マネージャーのバックエンドが指定されたサイズをサポートしていない場合、そのパラメータに最も近いアイコンのURLが返されます。

icon クラスには、キーと値のペアで構成されるパラメータもあります。使用するべき正確なキーは、使用しているプラグインによって異なります。これらのパラメータは、マネージャーによってどのアイコン URL が返されるかに影響を与え、アイコンを保存する際にアイコン URL の場所を指定するためにも使用できます。

アイコンの画像が1つしかない場合は、パラメータのキーとして `QPlaceIcon::SingleUrl ` を、関連する値として `QUrl ` を使用できます。このキーが設定されている場合、`url()` 関数は常に指定された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.