カスタムフォントを使用する
デバイス上で UI をプレビューする際にカスタムフォントを使用するには、そのフォントをプロジェクトフォルダにインポートする必要があります。Qt Creator は、UI とともにそれらのフォントをデバイスにデプロイします。
注: 数字のアニメーションを表示する場合は、数字が変化したときに画面上で飛び跳ねるように見えないよう、等幅フォントを使用してください 。
フォントを追加するには:
- 「Assets 」>「
」を選択します。 - フォントファイルが含まれているフォルダを参照してファイルを選択し、[Open] を選択します。
- 「Add Resources 」ダイアログで、ファイルを保存する場所を選択します。
- 「OK 」を選択してフォントを保存します。
フォントは、Properties のFont プロパティのフォント一覧に追加されます。
「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.