![]() The spacing property specifies the spacing between menu items. The tear-off is styled using the ::tearoff. The scroller is styled using the ::scroller. The separator is styled using the ::separator subcontrol.įor items with a sub menu, the arrow marks are styled using the right-arrow and left-arrow. The indicator of checkable menu items is styled using the ::indicator subcontrol. In addition to the usually supported pseudo states, item subcontrol supports the :selected, :default, :exclusive and the non-exclusive pseudo states. Individual items are styled using the ::item subcontrol. See Customizing QMainWindow for an example. The separator in a QMainWindow when using QDockWidget is styled using the ::separator subcontrol. See QAbsractScrollArea to style scrollable backgrounds. Use the ::item subcontrol for more fine grained control over the items in the QListView. The selection behavior is controlled by the show-decoration-selected property. When alternating row colors is enabled, the alternating colors can be styled using the alternate-background-color property. See Customizing QLineEdit for an example. The password mask delay can be changed using the lineedit-password-mask-delay The password character can be styled using the lineedit-password-character property. The color and background of the selected item is styled using selection-color and selection-background-color respectively. See Customizing QFrame for an example (a QLabel derives from QFrame). Does not support the :hover pseudo-state. See Customizing QHeaderView for an example. The sort indicator can be styled using the ::up-arrow and the ::down-arrow Sub-control. The section Sub-control supports the :middle, :first, :last, :only-one, :next-selected, :previous-selected, :selected, and :checked pseudo states. The sections of the header view are styled using the ::section sub control. See Customizing QGroupBox for an example. The spacing property can be used to control the spacing between the text and indicator. The indicator is styled using the ::indicator subcontrol. In the case of a checkable QGroupBox, the title includes the check indicator. By default, the title is placed depending on QGroupBox::textAlignment. The title can be styled using the ::title subcontrol. Since 4.3, setting a stylesheet on a QLabel automatically sets the QFrame::frameStyle property to QFrame::StyledPanel. See Customizing QDockWidget for an example. Warning: The style sheet has no effect when the QDockWidget is undocked as Qt uses native top level windows when undocked. Supports only the background, background-clip and background-origin properties. ![]() See Customizing QComboBox for an example. The color of the placeholder text can be set using the placeholder-text-color property. By default, the arrow is placed in the center of the contents rectangle of the drop-down subcontrol. The arrow mark inside the drop-down button can be styled using the ::down-arrow subcontrol. By default, the drop-down button is placed in the top right corner of the padding rectangle of the widget. The drop-down button can be styled using the ::drop-down subcontrol. The frame around the combobox can be styled using the box model. ![]() The arrow indicators can by styled using the ::left-arrow subcontrol and the ::right-arrow subcontrol. The grip can be styled be using the image property. See Customizing QCheckBox for an example. The spacing property specifies the spacing between the check indicator and the text. By default, the indicator is placed in the Top Left corner of the Contents rectangle of the widget. The check indicator can be styled using the ::indicator subcontrol. See Customizing QAbstractScrollArea for an example. Setting the background-attachment to scroll, scrolls the background-image when the scroll bars move. Setting the background-attachment to fixed provides a background-image that does not scroll with the viewport. All derivatives of QAbstractScrollArea, including QTextEdit, and QAbstractItemView (all item view classes), support scrollable backgrounds using background-attachment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |