Qt Widgets Designer 統合

Qt Widgets Designerはスタイルシートをプレビューするための優れたツールです。Designer の任意のウィジェットを右クリックし、Change styleSheet... を選択してスタイル・シートを設定できます。

<span translate=Qt Widgets Designerでフォームを編集する" src="images/designer-stylesheet-options.webp" title="Qt Widgets Designerでフォームを編集する"/>

Qt Widgets Designer には、スタイル・シートのシンタックス・ハイライターとバリデーターも含まれています。バリデーターは、Edit Style Sheet ダイアログの左下に、構文が有効か無効かを示します。

スタイルシートの編集と検証

OK またはApply をクリックすると、Qt Widgets Designer が自動的に新しいスタイルシートでウィジェットを表示します。

新しいスタイルシートを使ったフォームのプレビュー

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