カスタムフォントの使用

UI をデバイスでプレビューするときにカスタムフォントを使用するには、フォントをプロジェクトフォルダにインポートする必要があります。Qt Creator は、UI と一緒にデバイスにフォントを配置します。

注: 数字をアニメーション化する場合は、固定幅のフォントを使用してください。

フォントを追加するには

  1. Assets >プラスボタン を選択します。
  2. フォントファイルを含むフォルダを参照して選択し、Open を選択します。
  3. Add Resources ダイアログでファイルを保存する場所を選択します。
  4. OK を選択してフォントを保存します。

フ ォ ン ト はPropertiesFont プ ロ パテ ィ の フ ォ ン ト リ ス ト に追加 さ れます。

ハウツーも参照してください: Qt Quick UI をデザインする」、Qt Quick UI をデザインする」、Qt Quick UI をデザインする」も参照してください。

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.