Qt

[QT] QSS美化-基本的な知識



Qss Beautification Basic Knowledge



目次

1つ、補助ツール



2、QSSロード方法

3、QSSセレクタータイプ



3.1ワイルドカードセレクター

3.2タイプセレクター

3.3属性セレクター



3.4クラスセレクター

3.5IDセレクター

3.6子孫セレクター

3.7子セレクター

3.8疑似クラスセレクター

4、QSSの共通属性

4.1フォント

4.2色

4.3内側マージン

4.4マージン

4.5背景

4.6ボーダー

4.7幅と高さ

5:QSS疑似状態と子コントロール


疑似状態リスト

:checked /*button widget is selected*/ :unchecked /*button part is not selected*/ :disabled /*Part is disabled*/ :enabled /*The component is enabled*/ :focus /*Part gets focus*/ :hover /*The mouse is on the part*/ :indeterminate /*checkbox or radiobutton is partially selected*/ :off /*Parts can be switched and are in off state*/ :on /*Parts can be switched and are in the on state*/ :pressed /*The part is pressed by the mouse*/

サブパートリスト

::down-arrow /*combo box or spin box down arrow*/ ::drop-down /*combo box drop down arrow*/ ::indicator /*checkbox, radio button or selectable group box indicator*/ ::item /*Sub-item of menu, menu bar or status bar*/ ::menu-indicator /*push button's menu indicator*/ ::title /*title of group box*/ ::down-button /*spin box's down button*/ ::up-arrow /*spin box's up arrow*/ ::up-button /*spin box's up button*/

参考記事:

https://www.cnblogs.com/csuftzzk/p/qss_button_menu.html

https://www.cnblogs.com/bclshuai/p/9809679.html

https://www.cnblogs.com/luxiaolai/p/4409502.html

https://www.cnblogs.com/wangqiguo/p/4960776.html