このページでは

HarmonyOSデバイスの接続

Qt Creator は、SDKのhdc を通じてHarmonyOSデバイスを検出するため、「hdc 」に一覧表示されるデバイスについては、個別の設定は不要です。

  1. デバイスでワイヤレスデバッグを有効にし、表示されるアドレスとポートをメモしておきます。ポートは毎回変わります。
  2. コマンドラインから、SDKのhdc を使用して一度接続してみてください:
    hdc tconn <address>:<port>
    hdc list targets
  3. 「Preferences 」>「Devices 」>「Devices 」に移動します。デバイスが一覧に表示され、そのページには「使用可能」と表示されています。

また、ソースコードとツールチェーンがデバイス自体にあるプロジェクト向けに、HarmonyOSデバイスがビルドデバイスとして提供されています。

キットの作成

Preferences >Kits >Qt Versions >Add で「Qt for HarmonyOS」を登録し、「qmake 」を選択します。「Qt Creator 」を実行すると、そのデバイスを実行デバイスとして、SDKのコンパイラを使用してキットが作成されます。これ以上の編集は必要ありません。

「HarmonyOS デバイス向けの開発」、「手順:HarmonyOS 向けの開発」、「手順:キットの管理」、および「キットの管理」も参照してください 。

Copyright © The Qt Company Ltd. and other contributors. 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.