Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2531

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /home/gvatteka/dev/qt-4.3/doc/src/stylesheet.qdoc -->
<head>
  <title>Qt Style Sheets Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 align="center">Qt Style Sheets Reference<br /><small></small></h1>
<p>Qt Style Sheets support various properties, pseudo-states, and subcontrols that make it possible to customize the look of widgets.</p>
<ul><li><a href="#list-of-stylable-widgets">List of Stylable Widgets</a></li>
<li><a href="#list-of-properties">List of Properties</a></li>
<li><a href="#list-of-property-types">List of Property Types</a></li>
<li><a href="#list-of-pseudo-states">List of Pseudo-States</a></li>
<li><a href="#list-of-sub-controls">List of Sub-Controls</a></li>
</ul>
<a name="list-of-stylable-widgets"></a>
<h2>List of Stylable Widgets</h2>
<p>The following table lists the Qt widgets that can be customized using style sheets:</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Widget</th><th>How to Style</th></tr></thead>
<tr valign="top" class="odd"><td><a href="gui/QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> <a name="qabstractscrollarea-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>All derivatives of <a href="gui/QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a>, including <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> (all item view classes), support scrollable backgrounds using <a href="stylesheet-reference.html#background-attachment-prop">background-attachment</tt></a>. Setting the background-attachment to <tt>fixed</tt> provides a background-image that does not scroll with the viewport. Setting the background-attachment to <tt>scroll</tt>, scrolls the background-image when the scroll bars move.</p>
<p>See <a href="stylesheet-examples.html#customizing-qabstractscrollarea">Customizing </tt>QAbstractScrollArea</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a> <a name="qcheckbox-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The check indicator can be styled using the <a href="stylesheet-reference.html#indicator-sub">::indicator</a> subcontrol. By default, the indicator is placed in the Top Left corner of the Contents rectangle of the widget.<p>The <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a> property specifies the spacing between the check indicator and the text.</p>
<p>See <a href="stylesheet-examples.html#customizing-qcheckbox">Customizing </tt>QCheckBox</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QColumnView.html"><tt>QColumnView</tt></a> <a name="qcolumnview-widget"></a></td><td>The grip can be styled be using the <a href="stylesheet-reference.html#image-prop">image</tt></a> property. The arrow indicators can by styled using the <a href="stylesheet-reference.html#left-arrow-sub">::left-arrow</tt></a> subcontrol and the <a href="stylesheet-reference.html#right-arrow-sub">::right-arrow</tt></a> subcontrol.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QComboBox.html"><tt>QComboBox</tt></a> <a name="qcombobox-widget"></a></td><td>The frame around the combobox can be styled using the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The drop-down button can be styled using the <a href="stylesheet-reference.html#drop-down-sub">::drop-down</tt></a> subcontrol. By default, the drop-down button is placed in the top right corner of the padding rectangle of the widget. The arrow mark inside the drop-down button can be styled using the <a href="stylesheet-reference.html#down-arrow-sub">::down-arrow</tt></a> subcontrol. By default, the arrow is placed in the center of the contents rectangle of the drop-down subcontrol.<p>See <a href="stylesheet-examples.html#customizing-qcombobox">Customizing </tt>QComboBox</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QDateEdit.html"><tt>QDateEdit</tt></a> <a name="qdateedit-widget"></a></td><td>See <a href="stylesheet-reference.html#qspinbox-widget">QSpinBox</a>.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QDateTimeEdit.html"><tt>QDateTimeEdit</tt></a> <a name="qdatetimeedit-widget"></a></td><td>See <a href="stylesheet-reference.html#qspinbox-widget">QSpinBox</a>.</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QDialog.html"><tt>QDialog</tt></a> <a name="qdialog-widget"></a></td><td>Supports only the <a href="stylesheet-reference.html#background-prop">background</tt></a>, <a href="stylesheet-reference.html#background-clip-prop">background-clip</tt></a> and <a href="stylesheet-reference.html#background-origin-prop">background-origin</tt></a> properties.<p>If you subclass from <a href="gui/QDialog.html"><tt>QDialog</tt></a>, you need to provide a paintEvent for your custom <a href="gui/QDialog.html"><tt>QDialog</tt></a> as below:</p>
<pre>    void CustomDialog::paintEvent(QPaintEvent *)
    {
        QStyleOption opt;
        opt.init(this);
        QPainter p(this);
        style()-&gt;drawPrimitive(QStyle::PE_Widget, &amp;opt, &amp;p, this);
    }</pre>
<p>The above code is a no-operation if there is no stylesheet set.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QDialogButtonBox.html"><tt>QDialogButtonBox</tt></a> <a name="qdialogbuttonbox-widget"></a></td><td>The layout of buttons can be altered using the <a href="stylesheet-reference.html#button-layout-prop">button-layout</tt></a> property.</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QDoubleSpinBox.html"><tt>QDoubleSpinBox</tt></a> <a name="qdoublespinbox-widget"></a></td><td>See <a href="stylesheet-reference.html#qspinbox-widget">QSpinBox</a>.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QFrame.html"><tt>QFrame</tt></a> <a name="qframe-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>Since 4.3, setting a stylesheet on a <a href="gui/QLabel.html"><tt>QLabel</tt></a> automatically sets the QFrame::frameStyle property to QFrame::StyledPanel.</p>
<p>See <a href="stylesheet-examples.html#customizing-qframe">Customizing </tt>QFrame</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a> <a name="qgroupbox-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The title can be styled using the <a href="stylesheet-reference.html#title-sub">::title</a> subcontrol. By default, the title is placed depending on QGroupBox::textAlignment.<p>In the case of a checkable <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, the title includes the check indicator. The indicator is styled using the the <a href="stylesheet-reference.html#indicator-sub">::indicator</a> subcontrol. The <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a> property can be used to control the spacing between the text and indicator.</p>
<p>See <a href="stylesheet-examples.html#customizing-qgroupbox">Customizing </tt>QGroupBox</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QHeaderView.html"><tt>QHeaderView</tt></a> <a name="qheaderview-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The sections of the header view are styled using the <a href="stylesheet-reference.html#section-sub">::section</a> sub control. The <tt>section</tt> Sub-control supports the <a href="stylesheet-reference.html#middle-ps">:middle</tt></a>, <a href="stylesheet-reference.html#first-ps">:first</tt></a>, <a href="stylesheet-reference.html#last-ps">:last</tt></a>, <a href="stylesheet-reference.html#only-one-ps">:only-one</tt></a>, <a href="stylesheet-reference.html#next-selected-ps">:next-selected</tt></a>, <a href="stylesheet-reference.html#previous-selected-ps">:previous-selected</tt></a>, <a href="stylesheet-reference.html#selected-ps">:selected</tt></a> pseudo states.<p>Sort indicator in can be styled using the <a href="stylesheet-reference.html#up-arrow-sub">::up-arrow</tt></a> and the <a href="stylesheet-reference.html#down-arrow-sub">::down-arrow</tt></a> Sub-control.</p>
<p>See <a href="stylesheet-examples.html#customizing-qheaderview">Customizing </tt>QHeaderView</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QLabel.html"><tt>QLabel</tt></a> <a name="qlabel-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. Does not support the <a href="stylesheet-reference.html#hover-ps">:hover</tt></a> pseudo-state.<p>Since 4.3, setting a stylesheet on a <a href="gui/QLabel.html"><tt>QLabel</tt></a> automatically sets the QFrame::frameStyle property to QFrame::StyledPanel.</p>
<p>See <a href="stylesheet-examples.html#customizing-qframe">Customizing </tt>QFrame</a> for an example (a <a href="gui/QLabel.html"><tt>QLabel</tt></a> derives from <a href="gui/QFrame.html"><tt>QFrame</tt></a>).</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> <a name="qlineedit-widget"></a></td><td>Support the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>The color and background of the selected item is styled using <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> respectively.</p>
<p>The password character can be styled using the <a href="stylesheet-reference.html#lineedit-password-character-prop">lineedit-password-character</tt></a> property.</p>
<p>See <a href="stylesheet-examples.html#customizing-qlineedit">Customizing </tt>QLineEdit</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QListView.html"><tt>QListView</tt></a> <a name="qlistview-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. When alternating row colors</tt> is enabled, the alternating colors can be styled using the <a href="stylesheet-reference.html#alternate-background-color-prop">alternate-background-color</tt></a> property.<p>The color and background of the selected item is styled using <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> respectively.</p>
<p>The selection behavior is controlled by the <a href="stylesheet-reference.html#show-decoration-selected-prop">#show-decoration-selected-prop</tt></a> property.</p>
<p>See <a href="stylesheet-reference.html#qabstractscrollarea-widget">QAbsractScrollArea</a> to style scrollable backgrounds.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QListWidget.html"><tt>QListWidget</tt></a> <a name="qlistwidget-widget"></a></td><td>See <a href="stylesheet-reference.html#qlistview-widget">QListWidget</a>.</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QMenu.html"><tt>QMenu</tt></a> <a name="qmenu-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>Individual items are styled using the <a href="stylesheet-reference.html#item-sub">::item</a> subcontrol. In addition to the usually supported pseudo states, <tt>item</tt> subcontrol supports the <a href="stylesheet-reference.html#selected-ps">:selected</tt></a>, <a href="stylesheet-reference.html#default-ps">:default</tt></a>, <a href="stylesheet-reference.html#exclusive-ps">:exclusive</tt></a> and the <a href="stylesheet-reference.html#non-exclusive-ps">non-exclusive</tt></a> pseudo states.</p>
<p>The indicator of checkable menu items is styled using the <a href="stylesheet-reference.html#indicator-sub">::indicator</a> subcontrol.</p>
<p>The separator is styled using the <a href="stylesheet-reference.html#separator-sub">::separator</a> subcontrol.</p>
<p>For items with a sub menu, the arrow marks are styled using the <a href="stylesheet-reference.html#right-arrow-sub">right-arrow</tt></a> and <a href="stylesheet-reference.html#left-arrow-sub">left-arrow</tt></a>.</p>
<p>The scroller is styled using the <a href="stylesheet-reference.html#scroller-sub">::scroller</a>.</p>
<p>The tear-off is styled using the <a href="stylesheet-reference.html#tear-off-sub">::tear-off</tt></a>.</p>
<p>See <a href="stylesheet-examples.html#customizing-qmenu">Customizing </tt>QMenu</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a> <a name="qmenubar-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a> property specifies the spacing between menu items. Individual items are styled using the <a href="stylesheet-reference.html#item-sub">::item</a> subcontrol.<p>See <a href="stylesheet-examples.html#customizing-qmenubar">Customizing </tt>QMenuBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QMessageBox.html"><tt>QMessageBox</tt></a> <a name="qmessagebox-widget"></a></td><td>The <a href="stylesheet-reference.html#messagebox-text-interaction-flags-prop">messagebox-text-interaction-flags</tt></a> property can be used to alter the interaction with text in the message box.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QProgressBar.html"><tt>QProgressBar</tt></a> <a name="qprogressbar-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The chunks of the progress bar can be styled using the <a href="stylesheet-reference.html#chunk-sub">::chunk</a> subcontrol. The chunk is displayed on the Contents rectangle of the widget.<p>If the progress bar displays text, use the <a href="stylesheet-reference.html#text-align-prop">text-align</tt></a> property to position the text.</p>
<p>Indeterminate progress bars have the <a href="stylesheet-reference.html#indeterminate-ps">:indeterminate</tt></a> pseudo state set.</p>
<p>See <a href="stylesheet-examples.html#customizing-qprogressbar">Customizing </tt>QProgressBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QPushButton.html"><tt>QPushButton</tt></a> <a name="qpushbutton-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. Supports the <a href="stylesheet-reference.html#default-ps">:default</tt></a>, <a href="stylesheet-reference.html#flat-ps">:flat</tt></a>, <a href="stylesheet-reference.html#checked-ps">:checked</tt></a> pseudo states.<p>For <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> with a menu, the menu indicator is styled using the <a href="stylesheet-reference.html#menu-indicator-sub">::menu-indicator</tt></a> subcontrol. Appearance of checkable push buttons can be customized using the <a href="stylesheet-reference.html#open-ps">:open</tt></a> and <a href="stylesheet-reference.html#closed-ps">:closed</tt></a> pseudo-states.</p>
<p>See <a href="stylesheet-examples.html#customizing-qpushbutton">Customizing </tt>QPushButton</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a> <a name="qradiobutton-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The check indicator can be styled using the <a href="stylesheet-reference.html#indicator-sub">::indicator</a> subcontrol. By default, the indicator is placed in the Top Left corner of the Contents rectangle of the widget.<p>The <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a> property specifies the spacing between the check indicator and the text.</p>
<p>See <a href="stylesheet-examples.html#customizing-qradiobutton">Customizing </tt>QRadioButton</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> <a name="qscrollbar-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The Contents rectangle of the widget is considered to be the groove over which the slider moves. The extent of the <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> (i.e the width or the height depending on the orientation) is set using the <a href="stylesheet-reference.html#width-prop">width</tt></a> or <a href="stylesheet-reference.html#height-prop">height</tt></a> property respectively. To determine the orientation, use the <a href="stylesheet-reference.html#horizontal-ps">:horizontal</tt></a> and the <a href="stylesheet-reference.html#vertical-ps">:vertical</tt></a> pseudo states.<p>The slider can be styled using the <a href="stylesheet-reference.html#handle-sub">::handle</a> subcontrol. Setting the <a href="stylesheet-reference.html#min-width-prop">min-width</tt></a> or <a href="stylesheet-reference.html#min-height-prop">min-height</tt></a> provides size contraints for the slider depending on the orientation.</p>
<p>The <a href="stylesheet-reference.html#add-line-sub">::add-line</tt></a> subcontrol can be used to style the button to add a line. By default, the add-line subcontrol is placed in top right corner of the Border rectangle of the widget. Depending on the orientation the <a href="stylesheet-reference.html#right-arrow-sub">::right-arrow</tt></a> or <a href="stylesheet-reference.html#down-arrow-sub">::down-arrow</tt></a>. By default, the arrows are placed in the center of the Contents rectangle of the add-line subcontrol.</p>
<p>The <a href="stylesheet-reference.html#sub-line-sub">::sub-line</tt></a> subcontrol can be used to style the button to subtract a line. By default, the sub-line subcontrol is placed in bottom right corner of the Border rectangle of the widget. Depending on the orientation the <a href="stylesheet-reference.html#left-arrow-sub">::left-arrow</tt></a> or <a href="stylesheet-reference.html#up-arrow-sub">::up-arrow</tt></a>. By default, the arrows are placed in the center of the Contents rectangle of the sub-line subcontrol.</p>
<p>The <a href="stylesheet-reference.html#sub-page-sub">::sub-page</tt></a> subcontrol can be used to style the region of the slider that subtracts a page. The <a href="stylesheet-reference.html#add-page-sub">::add-page</tt></a> subcontrol can be used to style the region of the slider that adds a page.</p>
<p>See <a href="stylesheet-examples.html#customizing-qscrollbar">Customizing </tt>QScrollBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QSizeGrip.html"><tt>QSizeGrip</tt></a> <a name="qsizegrip-widget"></a></td><td>Supports the <a href="stylesheet-reference.html#width-prop">width</tt></a>, <a href="stylesheet-reference.html#height-prop">height</tt></a>, and <a href="stylesheet-reference.html#image-prop">image</tt></a> properties.<p>See <a href="stylesheet-examples.html#customizing-qsizegrip">Customizing </tt>QSizeGrip</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QSlider.html"><tt>QSlider</tt></a> <a name="qslider-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. For horizontal slides, the <a href="stylesheet-reference.html#min-width-prop">min-width</tt></a> and <a href="stylesheet-reference.html#height-prop">height</tt></a> properties must be provided. For vertical sliders, the <a href="stylesheet-reference.html#min-height-prop">min-height</tt></a> and <a href="stylesheet-reference.html#width-prop">width</tt></a> properties must be provided.<p>The groove of the slider is styled using the <a href="stylesheet-reference.html#groove-sub">::groove</a>. The groove is positioned by default in the Contents rectangle of the widget. The thumb of the slider is styled using <a href="stylesheet-reference.html#handle-sub">::handle</a> subcontrol. The subcontrol moves in the Contents rectangle of the groove subcontrol.</p>
<p>See <a href="stylesheet-examples.html#customizing-qslider">Customizing </tt>QSlider</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> <a name="qspinbox-widget"></a></td><td>The frame of the spin box can be styled using the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>The up button and arrow can be styled using the <a href="stylesheet-reference.html#up-button-sub">::up-button</tt></a> and <a href="stylesheet-reference.html#up-arrow-sub">::up-arrow</tt></a> subcontrols. By default, the up-button is placed in the top right corner in the Padding rectangle of the widget. Without an explicit size, it occupies half the height of its reference rectangle. The up-arrow is placed in the center of the Contents rectangle of the up-button.</p>
<p>The down button and arrow can be styled using the <a href="stylesheet-reference.html#down-button-sub">::down-button</tt></a> and <a href="stylesheet-reference.html#down-arrow-sub">::down-arrow</tt></a> subcontrols. By default, the down-button is placed in the bottom right corner in the Padding rectangle of the widget. Without an explicit size, it occupies half the height of its reference rectangle. The bottom-arrow is placed in the center of the Contents rectangle of the bottom-button.</p>
<p>See <a href="stylesheet-examples.html#customizing-qspinbox">Customizing </tt>QSpinBox</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QSplitter.html"><tt>QSplitter</tt></a> <a name="qsplitter-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The handle of the splitter is styled using the <a href="stylesheet-reference.html#handle-sub">::handle</a> subcontrol.<p>See <a href="stylesheet-examples.html#customizing-qsplitter">Customizing </tt>QSplitter</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a> <a name="qstatusbar-widget"></a></td><td>Supports only the <a href="stylesheet-reference.html#background-prop">background</tt></a> property. The frame for individual items can be style using the <a href="stylesheet-reference.html#item-sub">::item</a> subcontrol.<p>See <a href="stylesheet-examples.html#customizing-qstatusbar">Customizing </tt>QStatusBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QTabBar.html"><tt>QTabBar</tt></a> <a name="qtabbar-widget"></a></td><td>Individual tabs may be styled using the <a href="stylesheet-reference.html#tab-sub">::tab</a> subcontrol. The tabs support the <a href="stylesheet-reference.html#only-one-ps">:only-one</tt></a>, <a href="stylesheet-reference.html#first-ps">:first</tt></a>, <a href="stylesheet-reference.html#last-ps">:last</tt></a>, <a href="stylesheet-reference.html#middle-ps">:middle</tt></a>, <a href="stylesheet-reference.html#previous-selected-ps">:previous--selected</tt></a>, <a href="stylesheet-reference.html#next-selected-ps">:next-selected</tt></a>, <a href="stylesheet-reference.html#selected-ps">:selected</tt></a> pseudo states.<p>The <a href="stylesheet-reference.html#top-ps">:top</tt></a>, <a href="stylesheet-reference.html#left-ps">:left</tt></a>, <a href="stylesheet-reference.html#right-ps">:right</tt></a>, <a href="stylesheet-reference.html#bottom-ps">:bottom</tt></a> pseudo states depending on the orientation of the tabs.</p>
<p>Overlapping tabs for the selected state are created by using negative margins or using the <tt>absolute</tt> position scheme.</p>
<p>The tear indicator of the <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> is styled using the <a href="stylesheet-reference.html#tear-sub">::tear</a> subcontrol.</p>
<p><a href="gui/QTabBar.html"><tt>QTabBar</tt></a> used two QToolButtons for its scrollers that can be styled using the <tt>QTabBar QToolButton</tt> selector. To specify the width of the scroll button use the <a href="stylesheet-reference.html#scroller-sub">::scroller</a> subcontrol.</p>
<p>The alignment of the tabs within the <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> is styled using the <a href="stylesheet-reference.html#alignment">alignment</tt></a> property.</p>
<p><b>Warning:</b></p>
<p>To change the position of the <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> within a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>, use the <a href="stylesheet-reference.html#tab-bar-sub">tab-bar</tt></a> subcontrol (and set subcontrol-position).</p>
<p>See <a href="stylesheet-examples.html#customizing-qtabwidget-and-qtabbar">Customizing </tt>QTabBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a> <a name="qtabwidget-widget"></a></td><td>The frame of the tab widget is styled using the <a href="stylesheet-reference.html#pane-sub">::pane</a> subcontrol. The left and right corners are styled using the <a href="stylesheet-reference.html#left-corner-sub">::left-corner</tt></a> and <a href="stylesheet-reference.html#right-corner-sub">::right-corner</tt></a> respectively. The position of the the tab bar is controlled using the <a href="stylesheet-reference.html#tab-bar-sub">::tab-bar</tt></a> subcontrol.<p>By default, the subcontrols have positions of a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a> in the <a href="gui/QWindowsStyle.html"><tt>QWindowsStyle</tt></a>. To place the <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> in the center, set the subcontrol-position of the tab-bar subcontrol.</p>
<p>The <a href="stylesheet-reference.html#top-ps">:top</tt></a>, <a href="stylesheet-reference.html#left-ps">:left</tt></a>, <a href="stylesheet-reference.html#right-ps">:right</tt></a>, <a href="stylesheet-reference.html#bottom-ps">:bottom</tt></a> pseudo states depending on the orientation of the tabs.</p>
<p>See <a href="stylesheet-examples.html#customizing-qtabwidget-and-qtabbar">Customizing </tt>QTabWidget</a> for an example.</p>
</td><td><a href="gui/QTableView.html"><tt>QTableView</tt></a> <a name="qtableview-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. When alternating row colors</tt> is enabled, the alternating colors can be styled using the <a href="stylesheet-reference.html#alternate-background-color-prop">alternate-background-color</tt></a> property.<p>The color and background of the selected item is styled using <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> respectively.</p>
<p>The color of the grid can be specified using the <a href="stylesheet-reference.html#gridline-color-prop">gridline-color</tt></a> property.</p>
<p>See <a href="stylesheet-reference.html#qabstractscrollarea-widget">QAbsractScrollArea</a> to style scrollable backgrounds.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QTableWidget.html"><tt>QTableWidget</tt></a> <a name="qtablewidget-widget"></a></td><td>See <a href="stylesheet-reference.html#qtableview-widget">QTableView</a>.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a> <a name="qtextedit-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>The color and background of selected text is styled using <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> respectively.</p>
<p>See <a href="stylesheet-reference.html#qabstractscrollarea-widget">QAbsractScrollArea</a> to style scrollable backgrounds.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QTimeEdit.html"><tt>QTimeEdit</tt></a> <a name="qtimeedit-widget"></a></td><td>See <a href="stylesheet-reference.html#qspinbox-widget">QSpinBox</a>.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QToolBar.html"><tt>QToolBar</tt></a> <a name="qtoolbar-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>The <a href="stylesheet-reference.html#top-ps">:top</tt></a>, <a href="stylesheet-reference.html#left-ps">:left</tt></a>, <a href="stylesheet-reference.html#right-ps">:right</tt></a>, <a href="stylesheet-reference.html#bottom-ps">:bottom</tt></a> pseudo states depending on the area in which the tool bar is grouped.</p>
<p>The <a href="stylesheet-reference.html#first-ps">:first</tt></a>, <a href="stylesheet-reference.html#last-ps">:last</tt></a>, <a href="stylesheet-reference.html#middle-ps">:middle</tt></a>, <a href="stylesheet-reference.html#only-one-ps">:only-one</tt></a> pseudo states indicator the position of the tool bar within a line group (See QStyleOptionToolBar::positionWithinLine).</p>
<p>The separator of a <a href="gui/QToolBar.html"><tt>QToolBar</tt></a> is styled using the <a href="stylesheet-reference.html#separator-sub">::separator</a> subcontrol.</p>
<p>The handle (to move the toolbar) is styled using the <a href="stylesheet-reference.html#handle-sub">::handle</a> subcontrol.</p>
<p>See <a href="stylesheet-examples.html#customizing-qtoolbar">Customizing </tt>QToolBar</a> for an example.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QToolButton.html"><tt>QToolButton</tt></a> <a name="qtoolbutton-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>If the <a href="gui/QToolButton.html"><tt>QToolButton</tt></a> has a menu, is <a href="stylesheet-reference.html#menu-indicator-sub">::menu-indicator</tt></a> subcontrol can be used to style the indicator. By default, the menu-indicator is positioned at the bottom right of the Padding rectangle of the widget.</p>
<p>If the <a href="gui/QToolButton.html"><tt>QToolButton</tt></a> is in QToolButton::MenuButtonPopup mode, the <a href="stylesheet-reference.html#menu-button-sub">::menu-button</tt></a> subcontrol is used to draw the menu button. <a href="stylesheet-reference.html#menu-arrow-sub">::menu-arrow</tt></a> subcontrol is used to draw the menu arrow inside the menu-button. By default, it is positioned in the center of the Contents rectangle of the the menu-button subcontrol.</p>
<p>When the <a href="gui/QToolButton.html"><tt>QToolButton</tt></a> displays arrows, the <a href="stylesheet-reference.html#up-arrow-sub">::up-arrow</tt></a>, <a href="stylesheet-reference.html#down-arrow-sub">::down-arrow</tt></a>, <a href="stylesheet-reference.html#left-arrow-sub">::left-arrow</tt></a> and <a href="stylesheet-reference.html#right-arrow-sub">::right-arrow</tt></a> subcontrols are used.</p>
<p>See <a href="stylesheet-examples.html#customizing-qtoolbutton">Customizing </tt>QToolButton</a> for an example.</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QToolBox.html"><tt>QToolBox</tt></a> <a name="qtoolbox-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>.<p>The individual tabs can by styled using the <a href="stylesheet-reference.html#tab-sub">::tab</a> subcontrol. The tabs support the <a href="stylesheet-reference.html#only-one-ps">:only-one</tt></a>, <a href="stylesheet-reference.html#first-ps">:first</tt></a>, <a href="stylesheet-reference.html#last-ps">:last</tt></a>, <a href="stylesheet-reference.html#middle-ps">:middle</tt></a>, <a href="stylesheet-reference.html#previous-selected-ps">:previous-selected</tt></a>, <a href="stylesheet-reference.html#next-selected-ps">:next-selected</tt></a>, <a href="stylesheet-reference.html#selected-ps">:selected</tt></a> pseudo states.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QToolTip.html"><tt>QToolTip</tt></a> <a name="qtooltip-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. The <a href="stylesheet-reference.html#opacity-prop">opacity</tt></a> property controls the opacity of the tooltip.<p>See <a href="stylesheet-examples.html#customizing-qframe">Customizing </tt>QFrame</a> for an example (a <a href="gui/QToolTip.html"><tt>QToolTip</tt></a> is a <a href="gui/QFrame.html"><tt>QFrame</tt></a>).</p>
</td></tr>
<tr valign="top" class="even"><td><a href="gui/QTreeView.html"><tt>QTreeView</tt></a> <a name="qtreeview-widget"></a></td><td>Supports the <a href="stylesheet-customizing.html#box-model">box model</tt></a>. When alternating row colors</tt> is enabled, the alternating colors can be styled using the <a href="stylesheet-reference.html#alternate-background-color-prop">alternate-background-color</tt></a> property.<p>The color and background of the selected item is styled using <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> respectively.</p>
<p>The branches of the tree view can be styled using the <a href="stylesheet-reference.html#branch-sub">::branch</a> subcontrol. The ::branch Sub-control supports the <a href="stylesheet-reference.html#open-ps">:open</tt></a>, <a href="stylesheet-reference.html#closed-ps">:closed</tt></a>, <a href="stylesheet-reference.html#has-siblings-ps">:has-sibling</tt></a> and <a href="stylesheet-reference.html#has-children-ps">:has-children</tt></a> pseudo states.</p>
<p>See <a href="stylesheet-reference.html#qabstractscrollarea-widget">QAbsractScrollArea</a> to style scrollable backgrounds.</p>
<p>See <a href="stylesheet-examples.html#customizing-qtreeview">Customizing </tt>QTreeView</a> for an example to style the branches.</p>
</td></tr>
<tr valign="top" class="odd"><td><a href="gui/QTreeWidget.html"><tt>QTreeWidget</tt></a> <a name="qtreewidget-widget"></a></td><td>See <a href="stylesheet-reference.html#qtreeview-widget">QTreeView</a>.</td></tr>
<tr valign="top" class="even"><td><a href="gui/QWidget.html"><tt>QWidget</tt></a> <a name="qwidget-widget"></a></td><td>Supports only the <a href="stylesheet-reference.html#background-prop">background</tt></a>, <a href="stylesheet-reference.html#background-clip-prop">backgorund-clip</tt></a> and <a href="stylesheet-reference.html#background-origin-prop">background-origin</tt></a> properties.<p>If you subclass from <a href="gui/QWidget.html"><tt>QWidget</tt></a>, you need to provide a paintEvent for your custom <a href="gui/QWidget.html"><tt>QWidget</tt></a> as below:</p>
<pre>    void CustomWidget::paintEvent(QPaintEvent *)
    {
        QStyleOption opt;
        opt.init(this);
        QPainter p(this);
        style()-&gt;drawPrimitive(QStyle::PE_Widget, &amp;opt, &amp;p, this);
    }</pre>
<p>The above code is a no-operation if there is no stylesheet set.</p>
</td></tr>
</table></p>
<a name="list-of-properties"></a>
<h2>List of Properties</h2>
<p>The table below lists all the properties supported by Qt Style Sheets. Which values can be given to an property depend on the <a href="stylesheet-reference.html#list-of-property-types">property's type</tt></a>. Unless otherwise specified, properties below apply to all widgets. Properties marked with an asterisk * are specific to Qt and have no equivalent in CSS2 or CSS3.</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Property</th><th>Type</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><b><tt>alternate-background-color</tt></b> <a name="alternate-background-color-prop"></a></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The alternate background color</tt> used in <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses.<p>If this property is not set, the default value is whatever is set for the palette's AlternateBase role.</p>
<p>Example:</p>
<pre>     QTreeView {
         alternate-background-color: blue;
         background: yellow;
     }</pre>
<p>See also <a href="stylesheet-reference.html#background-prop">background</tt></a> and <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>background</tt></b> <a name="background-prop"></a></td><td><a href="stylesheet-reference.html#background">Background</tt></a></td><td>Shorthand notation for setting the background. Equivalent to specifying <tt>background-color</tt>, <tt>background-image</tt>, <tt>background-repeat</tt>, and/or <tt>background-position</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>For <a href="gui/QFrame.html"><tt>QFrame</tt></a> and its subclasses, you must set the QFrame::frameStyle property to QFrame::StyledPanel; otherwise, the <tt>background</tt> property will not be respected.</p>
<p>Example:</p>
<pre>     QTextEdit { background: yellow }</pre>
<p>See also <a href="stylesheet-reference.html#background-origin-prop">background-origin</tt></a>, <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a>, <a href="stylesheet-reference.html#background-clip-prop">background-clip</tt></a>, <a href="stylesheet-reference.html#background-attachment-prop">background-attachment</tt></a> and <a href="stylesheet-reference.html#alternate-background-color-prop">alternate-background-color</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><tt>background-color</tt> <a name="background-color-prop"></a></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The background color used for the widget.<p>Examples:</p>
<pre>    QLabel { background-color: yellow }
    QLineEdit { background-color: rgb(255, 0, 0) }</pre>
</td></tr>
<tr valign="top" class="even"><td><tt>background-image</tt> <a name="background-image-prop"></a></td><td><a href="stylesheet-reference.html#url">Url</tt></a></td><td>The background image used for the widget. Semi-transparent parts of the image let the <tt>background-color</tt> shine through.<p>Example:</p>
<pre>    QFrame { background-image: url(:/images/hydro.png) }</pre>
</td></tr>
<tr valign="top" class="odd"><td><tt>background-repeat</tt> <a name="background-repeat-prop"></a></td><td><a href="stylesheet-reference.html#repeat">Repeat</tt></a></td><td>Whether and how the background image is repeated to fill the <tt>background-origin</tt> rectangle.<p>If this property is not specified, the background image is repeated in both directions (<tt>repeat</tt>).</p>
<p>Example:</p>
<pre>     QFrame {
         background: white url(:/images/ring.png);
         background-repeat: repeat-y;
         background-position: left;
     }</pre>
</td></tr>
<tr valign="top" class="even"><td><tt>background-position</tt></td><td><a href="stylesheet-reference.html#alignment">Alignment</tt></a></td><td>The alignment of the background image within the <tt>background-origin</tt> rectangle.<p>If this property is not specified, the alignment is <tt>top</tt> <tt>left</tt>.</p>
<p>Example:</p>
<pre>     QFrame {
         background: url(:/images/footer.png);
         background-position: bottom left;
     }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>background-attachment</tt></b> <a name="background-attachment-prop"></a></td><td><a href="stylesheet-reference.html#attachment">Attachment</tt></a></td><td>Determines whether the background-image in a <a href="gui/QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> is scrolled or fixed with respect to the viewport. By default, the background-image scrolls with the viewport.<p>Example:</p>
<pre>     QTextEdit {
         background-image: url(&quot;leaves.png&quot;);
         background-attachment: fixed;
     }</pre>
<p>See also <a href="stylesheet-reference.html#background-prop">background</tt></a></p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>background-clip</tt></b> <a name="background-clip-prop"></a></td><td><a href="stylesheet-reference.html#origin">Origin</tt></a></td><td>The widget's rectangle, in which the <tt>background</tt> is drawn.<p>This property specifies the rectangle to which the <tt>background-color</tt> and <tt>background-image</tt> are clipped.</p>
<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>If this property is not specified, the default is <tt>border</tt>.</p>
<p>Example:</p>
<pre>     QFrame {
         background-image: url(:/images/header.png);
         background-position: top left;
         background-origin: content;
         background-clip: padding;
     }</pre>
<p>See also <a href="stylesheet-reference.html#background-prop">background</tt></a>, <a href="stylesheet-reference.html#background-origin-prop">background-origin</tt></a> and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>background-origin</tt></b> <a name="background-origin-prop"></a></td><td><a href="stylesheet-reference.html#origin">Origin</tt></a></td><td>The widget's background rectangle, to use in conjunction with <tt>background-position</tt> and <tt>background-image</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>If this property is not specified, the default is <tt>padding</tt>.</p>
<p>Example:</p>
<pre>     QFrame {
         background-image: url(:/images/header.png);
         background-position: top left;
         background-origin: content;
     }</pre>
<p>See also <a href="stylesheet-reference.html#background-prop">background</tt></a> and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>border</tt></b> <a name="border-prop"></a></td><td><a href="stylesheet-reference.html#border">Border</tt></a></td><td>Shorthand notation for setting the widget's border. Equivalent to specifying <tt>border-color</tt>, <tt>border-style</tt>, and/or <tt>border-width</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>Example:</p>
<pre>     QLineEdit { border: 1px solid white }</pre>
</td></tr>
<tr valign="top" class="odd"><td><tt>border-top</tt></td><td><a href="stylesheet-reference.html#border">Border</tt></a></td><td>Shorthand notation for setting the widget's top border. Equivalent to specifying <tt>border-top-color</tt>, <tt>border-top-style</tt>, and/or <tt>border-top-width</tt>.</td></tr>
<tr valign="top" class="even"><td><tt>border-right</tt></td><td><a href="stylesheet-reference.html#border">Border</tt></a></td><td>Shorthand notation for setting the widget's right border. Equivalent to specifying <tt>border-right-color</tt>, <tt>border-right-style</tt>, and/or <tt>border-right-width</tt>.</td></tr>
<tr valign="top" class="odd"><td><tt>border-bottom</tt></td><td><a href="stylesheet-reference.html#border">Border</tt></a></td><td>Shorthand notation for setting the widget's bottom border. Equivalent to specifying <tt>border-bottom-color</tt>, <tt>border-bottom-style</tt>, and/or <tt>border-bottom-width</tt>.</td></tr>
<tr valign="top" class="even"><td><tt>border-left</tt></td><td><a href="stylesheet-reference.html#border">Border</tt></a></td><td>Shorthand notation for setting the widget's left border. Equivalent to specifying <tt>border-left-color</tt>, <tt>border-left-style</tt>, and/or <tt>border-left-width</tt>.</td></tr>
<tr valign="top" class="odd"><td><b><tt>border-color</tt></b> <a name="border-attrs"></a> <a name="border-color-prop"></a></td><td><a href="stylesheet-reference.html#box-colors">Box Colors</tt></a></td><td>The color of all the border's edges. Equivalent to specifying <tt>border-top-color</tt>, <tt>border-right-color</tt>, <tt>border-bottom-color</tt>, and <tt>border-left-color</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>If this property is not specified, it defaults to <a href="stylesheet-reference.html#color-prop">color</tt></a> (i.e&#x2e;, the widget's foreground color).</p>
<p>Example:</p>
<pre>     QLineEdit {
         border-width: 1px;
         border-style: solid;
         border-color: white;
     }</pre>
<p>See also <a href="stylesheet-reference.html#border-style-prop">border-style</tt></a>, <a href="stylesheet-reference.html#border-width-prop">border-width</tt></a>, <a href="stylesheet-reference.html#border-image-prop">border-image</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><tt>border-top-color</tt></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The color of the border's top edge.</td></tr>
<tr valign="top" class="odd"><td><tt>border-right-color</tt></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The color of the border's right edge.</td></tr>
<tr valign="top" class="even"><td><tt>border-bottom-color</tt></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The color of the border's bottom edge.</td></tr>
<tr valign="top" class="odd"><td><tt>border-left-color</tt></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The color of the border's left edge.</td></tr>
<tr valign="top" class="even"><td><b><tt>border-image</tt></b> <a name="border-image-prop"></a></td><td><a href="stylesheet-reference.html#border-image">Border Image</tt></a></td><td>The image used to fill the border. The image is cut into nine parts and stretched appropriately if necessary. See <a href="stylesheet-reference.html#border-image">Border Image</tt></a> for details.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QDialog.html"><tt>QDialog</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>, and plain <a href="gui/QWidget.html"><tt>QWidget</tt></a>s.</p>
<p>See also <a href="stylesheet-reference.html#border-color-prop">border-color</tt></a>, <a href="stylesheet-reference.html#border-style-prop">border-style</tt></a>, <a href="stylesheet-reference.html#border-width-prop">border-width</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>border-radius</tt></b> <a name="border-radius-prop"></a></td><td><a href="stylesheet-reference.html#radius">Radius</tt></a></td><td>The radius of the border's corners. Equivalent to specifying <tt>border-top-left-radius</tt>, <tt>border-top-right-radius</tt>, <tt>border-bottom-right-radius</tt>, and <tt>border-bottom-left-radius</tt>.<p>The border-radius clips the element's <a href="stylesheet-reference.html#background-prop">background</tt></a>.</p>
<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, it defaults to 0.</p>
<p>Example:</p>
<pre>     QLineEdit {
         border-width: 1px;
         border-style: solid;
         border-radius: 4px;
     }</pre>
<p>See also <a href="stylesheet-reference.html#border-width-prop">border-width</tt></a> and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><tt>border-top-left-radius</tt></td><td><a href="stylesheet-reference.html#radius">Radius</tt></a></td><td>The radius of the border's top-left corner.</td></tr>
<tr valign="top" class="odd"><td><tt>border-top-right-radius</tt></td><td><a href="stylesheet-reference.html#radius">Radius</tt></a></td><td>The radius of the border's top-right corner.</td></tr>
<tr valign="top" class="even"><td><tt>border-bottom-right-radius</tt></td><td><a href="stylesheet-reference.html#radius">Radius</tt></a></td><td>The radius of the border's bottom-right corner. Setting this property to a positive value results in a rounded corner.</td></tr>
<tr valign="top" class="odd"><td><tt>border-bottom-left-radius</tt></td><td><a href="stylesheet-reference.html#radius">Radius</tt></a></td><td>The radius of the border's bottom-left corner. Setting this property to a positive value results in a rounded corner.</td></tr>
<tr valign="top" class="even"><td><b><tt>border-style</tt></b> <a name="border-style-prop"></a></td><td><a href="stylesheet-reference.html#border-style">Border Style</tt></a></td><td>The style of all the border's edges.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, it defaults to <tt>none</tt>.</p>
<p>Example:</p>
<pre>     QLineEdit {
         border-width: 1px;
         border-style: solid;
         border-color: blue;
     }</pre>
<p>See also <a href="stylesheet-reference.html#border-color-prop">border-color</tt></a>, <a href="stylesheet-reference.html#border-style-prop">border-style</tt></a>, <a href="stylesheet-reference.html#border-image-prop">border-image</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><tt>border-top-style</tt></td><td><a href="stylesheet-reference.html#border-style">Border Style</tt></a></td><td>The style of the border's top edge.</td></tr>
<tr valign="top" class="even"><td><tt>border-right-style</tt></td><td><a href="stylesheet-reference.html#border-style">Border Style</tt></a></td><td>The style of the border's right edge/</td></tr>
<tr valign="top" class="odd"><td><tt>border-bottom-style</tt></td><td><a href="stylesheet-reference.html#border-style">Border Style</tt></a></td><td>The style of the border's bottom edge.</td></tr>
<tr valign="top" class="even"><td><tt>border-left-style</tt></td><td><a href="stylesheet-reference.html#border-style">Border Style</tt></a></td><td>The style of the border's left edge.</td></tr>
<tr valign="top" class="odd"><td><b><tt>border-width</tt></b> <a name="border-width-prop"></a></td><td><a href="stylesheet-reference.html#box-lengths">Box Lengths</tt></a></td><td>The width of the border. Equivalent to setting <tt>border-top-width</tt>, <tt>border-right-width</tt>, <tt>border-bottom-width</tt>, and <tt>border-left-width</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>Example:</p>
<pre>     QLineEdit {
         border-width: 2px;
         border-style: solid;
         border-color: darkblue;
     }</pre>
<p>See also <a href="stylesheet-reference.html#border-color-prop">border-color</tt></a>, <a href="stylesheet-reference.html#border-radius-prop">border-radius</tt></a>, <a href="stylesheet-reference.html#border-style-prop">border-style</tt></a>, <a href="stylesheet-reference.html#border-image-prop">border-image</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><tt>border-top-width</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The width of the border's top edge.</td></tr>
<tr valign="top" class="odd"><td><tt>border-right-width</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The width of the border's right edge.</td></tr>
<tr valign="top" class="even"><td><tt>border-bottom-width</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The width of the border's bottom edge.</td></tr>
<tr valign="top" class="odd"><td><tt>border-left-width</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The width of the border's left edge.</td></tr>
<tr valign="top" class="even"><td><b><tt>bottom</tt></b> <a name="bottom-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>relative</tt> (the default), moves a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> by a certain offset up; specifying <tt>bottom: <i>y</i></tt> is then equivalent to specifying <tt><a href="stylesheet-reference.html#top-prop">top</tt></a>: -<i>y</i></tt>.<p>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>absolute</tt>, the <tt>bottom</tt> property specifies the subcontrol's bottom edge in relation to the parent's bottom edge (see also <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>).</p>
<p>Example:</p>
<pre>     QSpinBox::down-button { bottom: 2px }</pre>
<p>See also <a href="stylesheet-reference.html#left-prop">left</tt></a>, <a href="stylesheet-reference.html#right-prop">right</tt></a>, and <a href="stylesheet-reference.html#top-prop">top</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>button-layout</tt></b> <a name="button-layout-prop"></a></td><td><a href="stylesheet-reference.html#number">Number</tt></a></td><td>The layout of buttons in a <a href="gui/QDialogButtonBox.html"><tt>QDialogButtonBox</tt></a> or a <a href="gui/QMessageBox.html"><tt>QMessageBox</tt></a>. The possible values are 0 (WinLayout), 1 (MacLayout), 2 (KdeLayout), and 3 (GnomeLayout).<p>If this property is not specified, it defaults to the value specified by the current style for the SH_DialogButtonLayout style hint.</p>
<p>Example:</p>
<pre>     * { button-layout: 2 }</pre>
</td></tr>
<tr valign="top" class="even"><td><b><tt>color</tt></b> <a name="color-prop"></a></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The color used to render text.<p>This property is supported by all widgets that respect the <tt>QWidget::palette</tt>.</p>
<p>If this property is not set, the default is whatever is set for in the widget's palette for the QWidget::foregroundRole (typically black).</p>
<p>Example:</p>
<pre>     QPushButton { color: red }</pre>
<p>See also <a href="stylesheet-reference.html#background-prop">background</tt></a> and <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>font</tt></b> <a name="font-prop"></a></td><td><a href="stylesheet-reference.html#font">Font</tt></a></td><td>Shorthand notation for setting the text's font. Equivalent to specifying <tt>font-family</tt>, <tt>font-size</tt>, <tt>font-style</tt>, and/or <tt>font-weight</tt>.<p>This property is supported by all widgets that respect the <tt>QWidget::font</tt>.</p>
<p>If this property is not set, the default is the QWidget::font.</p>
<p>Example:</p>
<pre>     QCheckBox { font: bold italic large &quot;Times New Roman&quot; }</pre>
</td></tr>
<tr valign="top" class="even"><td><tt>font-family</tt></td><td>String</td><td>The font family.<p>Example:</p>
<pre>     QCheckBox { font-family: &quot;New Century Schoolbook&quot; }</pre>
</td></tr>
<tr valign="top" class="odd"><td><tt>font-size</tt></td><td><a href="stylesheet-reference.html#font-size">Font Size</tt></a></td><td>The font size. In this version of Qt, only pt and px metrics are supported.<p>Example:</p>
<pre>     QTextEdit { font-size: 12px }</pre>
</td></tr>
<tr valign="top" class="even"><td><tt>font-style</tt></td><td><a href="stylesheet-reference.html#font-style">Font Style</tt></a></td><td>The font style.<p>Example:</p>
<pre>     QTextEdit { font-style: italic }</pre>
</td></tr>
<tr valign="top" class="odd"><td><tt>font-weight</tt></td><td><a href="stylesheet-reference.html#font-weight">Font Weight</tt></a></td><td>The weight of the font.</td></tr>
<tr valign="top" class="even"><td><b><tt>gridline-color</tt></b>* <a name="gridline-color-prop"></a></td><td><a href="stylesheet-reference.html#color">Color</tt></a> <br /></td><td>The color of the grid line in a <a href="gui/QTableView.html"><tt>QTableView</tt></a>.<p>If this property is not specified, it defaults to the value specified by the current style for the SH_Table_GridLineColor style hint.</p>
<p>Example:</p>
<pre>     * { gridline-color: gray }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>height</tt></b> <a name="height-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The height of a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> (or in some case, a widget).<p>If this property is not specified, it defaults to a value that depends on the subcontrol/widget and on the current style.</p>
<p><b>Warning:</b> Unless otherwise specified, this property has no effect when set on widgets. If you want a widget with a fixed height, set the <a href="stylesheet-reference.html#min-width-prop">min-height</tt></a> and <a href="stylesheet-reference.html#max-width-prop">max-height</tt></a> to the same value.</p>
<p>Example:</p>
<pre>     QSpinBox::down-button { height: 10px }</pre>
<p>See also <a href="stylesheet-reference.html#width-prop">width</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>image</tt></b>* <a name="image-prop"></a></td><td><a href="stylesheet-reference.html#url">Url</tt></a>+</td><td>The image that is drawn in the contents rectangle of a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a>.<p>The image property accepts a list of <a href="stylesheet-reference.html#url">Url</tt></a>s or an <tt>svg</tt>. The actual image that is drawn is determined using the same algorithm as <a href="gui/QIcon.html"><tt>QIcon</tt></a>. If a <tt>svg</tt> is specified, the image is scaled to the size of the contents rectangle.</p>
<p>Setting the image property on sub controls implicitly sets the width and height of the sub-control (unless the image in a SVG).</p>
<p>In Qt 4.3 and later, the alignment of the image within the rectangle can be specified using <a href="stylesheet-reference.html#image-position-prop">image-position</tt></a>.</p>
<p><b>Warning:</b> The <a href="gui/QIcon.html"><tt>QIcon</tt></a> SVG plugin is needed to render SVG images.</p>
<p>Example:</p>
<pre><span class="comment">    /* implicitly sets the size of down-button to the size of spindown.png */</span>
    QSpinBox::down-button { image: url(:/images/spindown.png) }

    QTextEdit { image: url(x1.png) url(x2.png) }
    QTextEdit { image: url(pic1.svg) }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>image-position</tt></b> <a name="image-position-prop"></a></td><td><a href="stylesheet-reference.html#alignment">alignment</tt></a></td><td>In Qt 4.3 and later, the alignment of the image image's position can be specified using relative or absolute position.</td></tr>
<tr valign="top" class="even"><td><b><tt>left</tt></b> <a name="left-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>relative</tt> (the default), moves a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> by a certain offset to the right.<p>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>absolute</tt>, the <tt>left</tt> property specifies the subcontrol's left edge in relation to the parent's left edge (see also <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>).</p>
<p>If this property is not specified, it defaults to <tt>0</tt>.</p>
<p>Example:</p>
<pre>        QSpinBox::down-button { left: 2px }</pre>
<p>See also <a href="stylesheet-reference.html#right-prop">right</tt></a>, <a href="stylesheet-reference.html#top-prop">top</tt></a>, and <a href="stylesheet-reference.html#bottom-prop">bottom</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>lineedit-password-</tt> <br /> <tt>character</tt></b>* <a name="lineedit-password-character-prop"></a></td><td><a href="stylesheet-reference.html#number">Number</tt></a></td><td>The <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> password character as a Unicode number.<p>If this property is not specified, it defaults to the value specified by the current style for the SH_LineEdit_PasswordCharacter style hint.</p>
<p>Example:</p>
<pre>        * { lineedit-password-character: 9679 }</pre>
</td></tr>
<tr valign="top" class="even"><td><b><tt>margin</tt></b> <a name="margin-prop"></a></td><td><a href="stylesheet-reference.html#box-lengths">Box Lengths</tt></a></td><td>The widget's margins. Equivalent to specifying <tt>margin-top</tt>, <tt>margin-right</tt>, <tt>margin-bottom</tt>, and <tt>margin-left</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, it defaults to <tt>0</tt>.</p>
<p>Example:</p>
<pre>        QLineEdit { margin: 2px }</pre>
<p>See also <a href="stylesheet-reference.html#padding-prop">padding</tt></a>, <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><tt>margin-top</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's top margin.</td></tr>
<tr valign="top" class="even"><td><tt>margin-right</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's right margin.</td></tr>
<tr valign="top" class="odd"><td><tt>margin-bottom</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's bottom margin.</td></tr>
<tr valign="top" class="even"><td><tt>margin-left</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's left margin.</td></tr>
<tr valign="top" class="odd"><td><b><tt>max-height</tt></b> <a name="max-height-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's or a subcontrol's maximum height.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSizeGrip.html"><tt>QSizeGrip</tt></a>, <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>Example:</p>
<pre>        QSpinBox { max-height: 24px }</pre>
<p>See also <a href="stylesheet-reference.html#max-width-prop">max-width</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>max-width</tt></b> <a name="max-width-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's or a subcontrol's maximum width.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSizeGrip.html"><tt>QSizeGrip</tt></a>, <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>Example:</p>
<pre>        QComboBox { max-width: 72px }</pre>
<p>See also <a href="stylesheet-reference.html#max-height-prop">max-height</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>messagebox-text-</tt> <a name="messagebox-text-interaction-flags-prop"></a> <br /> <tt>interaction-flags</tt></b>*</td><td><a href="stylesheet-reference.html#number">Number</tt></a></td><td>The interaction behavior for text in a message box. Possible values are based on Qt::TextInteractionFlags.<p>If this property is not specified, it defaults to the value specified by the current style for the SH_MessageBox_TextInteractionFlags style hint.</p>
<p>Example:</p>
<pre>        QMessageBox { messagebox-text-interaction-flags: 5 }</pre>
</td></tr>
<tr valign="top" class="even"><td><b><tt>min-height</tt></b> <a name="min-height-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's or a subcontrol's minimum height.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSizeGrip.html"><tt>QSizeGrip</tt></a>, <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, the minimum height is derived based on the widget's contents and the style.</p>
<p>Example:</p>
<pre>        QComboBox { min-height: 24px }</pre>
<p>See also <a href="stylesheet-reference.html#min-width-prop">min-width</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>min-width</tt></b> <a name="min-width-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's or a subcontrol's minimum width.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSizeGrip.html"><tt>QSizeGrip</tt></a>, <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, the minimum width is derived based on the widget's contents and the style.</p>
<p>Example:</p>
<pre>        QComboBox { min-width: 72px }</pre>
<p>See also <a href="stylesheet-reference.html#min-height-prop">min-height</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>opacity</tt></b>* <a name="opacity-prop"></a></td><td><a href="stylesheet-reference.html#number">Number</tt></a></td><td>The opacity for a widget. Possible values are from 0 (transparent) to 255 (opaque). For the moment, this is only supported for <a href="gui/QToolTip.html">tooltips</tt></a>.<p>If this property is not specified, it defaults to the value specified by the current style for the SH_ToolTipLabel_Opacity style hint.</p>
<p>Example:</p>
<pre>        QToolTip { opacity: 223 }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>padding</tt></b> <a name="padding-prop"></a></td><td><a href="stylesheet-reference.html#box-lengths">Box Lengths</tt></a></td><td>The widget's padding. Equivalent to specifying <tt>padding-top</tt>, <tt>padding-right</tt>, <tt>padding-bottom</tt>, and <tt>padding-left</tt>.<p>This property is supported by <a href="gui/QAbstractItemView.html"><tt>QAbstractItemView</tt></a> subclasses, <a href="gui/QAbstractSpinBox.html"><tt>QAbstractSpinBox</tt></a> subclasses, <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QFrame.html"><tt>QFrame</tt></a>, <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>, <a href="gui/QLabel.html"><tt>QLabel</tt></a>, <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>, <a href="gui/QMenu.html"><tt>QMenu</tt></a>, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>, <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, <a href="gui/QSplitter.html"><tt>QSplitter</tt></a>, <a href="gui/QTextEdit.html"><tt>QTextEdit</tt></a>, and <a href="gui/QToolTip.html"><tt>QToolTip</tt></a>.</p>
<p>If this property is not specified, it defaults to <tt>0</tt>.</p>
<p>Example:</p>
<pre>        QLineEdit { padding: 3px }</pre>
<p>See also <a href="stylesheet-reference.html#margin-prop">margin</tt></a>, <a href="stylesheet-reference.html#spacing-prop">spacing</tt></a>, and <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><tt>padding-top</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's top padding.</td></tr>
<tr valign="top" class="odd"><td><tt>padding-right</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's right padding.</td></tr>
<tr valign="top" class="even"><td><tt>padding-bottom</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's bottom padding.</td></tr>
<tr valign="top" class="odd"><td><tt>padding-left</tt></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The widget's left padding.</td></tr>
<tr valign="top" class="even"><td><b><tt>position</tt></b> <a name="position-prop"></a></td><td><tt>relative</tt> <br /> | <tt>absolute</tt></td><td>Whether offsets specified using <a href="stylesheet-reference.html#left-prop">left</tt></a>, <a href="stylesheet-reference.html#right-prop">right</tt></a>, <a href="stylesheet-reference.html#top-prop">top</tt></a>, and <a href="stylesheet-reference.html#bottom-prop">bottom</tt></a> are relative or absolute coordinates.<p>If this property is not specified, it defaults to <tt>relative</tt>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>right</tt></b> <a name="right-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>relative</tt> (the default), moves a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> by a certain offset to the left; specifying <tt>right: <i>x</i></tt> is then equivalent to specifying <tt><a href="stylesheet-reference.html#left-prop">left</tt></a>: -<i>x</i></tt>.<p>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>absolute</tt>, the <tt>right</tt> property specifies the subcontrol's right edge in relation to the parent's right edge (see also <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>).</p>
<p>Example:</p>
<pre>        QSpinBox::down-button { right: 2px }</pre>
<p>See also <a href="stylesheet-reference.html#left-prop">left</tt></a>, <a href="stylesheet-reference.html#top-prop">top</tt></a>, and <a href="stylesheet-reference.html#bottom-prop">bottom</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>selection-background-color</tt></b>* <a name="selection-background-color-prop"></a></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The background of selected text or items.<p>This property is supported by all widgets that respect the <tt>QWidget::palette</tt> and that show selection text.</p>
<p>If this property is not set, the default value is whatever is set for the palette's Highlight</tt> role.</p>
<p>Example:</p>
<pre>        QTextEdit { selection-background-color: darkblue }</pre>
<p>See also <a href="stylesheet-reference.html#selection-color-prop">selection-color</tt></a> and <a href="stylesheet-reference.html#background-prop">background</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>selection-color</tt></b>* <a name="selection-color-prop"></a></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a> <br /></td><td>The foreground of selected text or items.<p>This property is supported by all widgets that respect the <tt>QWidget::palette</tt> and that show selection text.</p>
<p>If this property is not set, the default value is whatever is set for the palette's HighlightedText role.</p>
<p>Example:</p>
<pre>        QTextEdit { selection-color: white }</pre>
<p>See also <a href="stylesheet-reference.html#selection-background-color-prop">selection-background-color</tt></a> and <a href="stylesheet-reference.html#color-prop">color</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>show-decoration-</tt> <a name="show-decoration-selected-prop"></a> <br /> <tt>selected</tt></b>*</td><td><a href="stylesheet-reference.html#boolean">Boolean</tt></a></td><td>Controls whether selections in a <a href="gui/QListView.html"><tt>QListView</tt></a> cover the entire row or just the extent of the text.<p>If this property is not specified, it defaults to the value specified by the current style for the SH_ItemView_ShowDecorationSelected style hint.</p>
<p>Example:</p>
<pre>        * { show-decoration-selected: 1 }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>spacing</tt></b>* <a name="spacing-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>Internal spacing in the widget.<p>This property is supported by <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, checkable <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>es, <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, and <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>.</p>
<p>If this property is not specified, the default value depends on the widget and on the current style.</p>
<p>Example:</p>
<pre>        QMenuBar { spacing: 10 }</pre>
<p>See also <a href="stylesheet-reference.html#padding-prop">padding</tt></a> and <a href="stylesheet-reference.html#margin-prop">margin</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>subcontrol-origin</tt></b>* <a name="subcontrol-origin-prop"></a></td><td><a href="stylesheet-reference.html#origin">Origin</tt></a></td><td>The origin rectangle of the <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> within the parent element.<p>If this property is not specified, the default is <tt>padding</tt>.</p>
<p>Example:</p>
<pre>        QSpinBox::up-button {
            image: url(:/images/spinup.png);
            subcontrol-origin: content;
            subcontrol-position: right top;
        }</pre>
<p>See also <a href="stylesheet-reference.html#subcontrol-position-prop">subcontrol-position</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>subcontrol-position</tt></b>* <a name="subcontrol-position-prop"></a></td><td><a href="stylesheet-reference.html#alignment">Alignment</tt></a></td><td>The alignment of the <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> within the origin rectangle specified by <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>.<p>If this property is not specified, it defaults to a value that depends on the subcontrol.</p>
<p>Example:</p>
<pre>        QSpinBox::down-button {
            image: url(:/images/spindown.png);
            subcontrol-origin: padding;
            subcontrol-position: right bottom;
        }</pre>
<p>See also <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>text-align</tt></b> <a name="text-align-prop"></a></td><td><a href="stylesheet-reference.html#alignment">Alignment</tt></a></td><td>The alignment of text and icon within the contents of the widget.<p>If this value is not specified, it defaults to the value that depends on the native style.</p>
<p>Example:</p>
<pre>        QPushButton {
            text-align: left;
        }</pre>
<p>This property is currently supported only by <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> and <a href="gui/QProgressBar.html"><tt>QProgressBar</tt></a>.</p>
</td></tr>
<tr valign="top" class="odd"><td><b><tt>top</tt></b> <a name="top-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>relative</tt> (the default), moves a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> by a certain offset down.<p>If <a href="stylesheet-reference.html#position-prop">position</tt></a> is <tt>absolute</tt>, the <tt>top</tt> property specifies the subcontrol's top edge in relation to the parent's top edge (see also <a href="stylesheet-reference.html#subcontrol-origin-prop">subcontrol-origin</tt></a>).</p>
<p>If this property is not specified, it defaults to <tt>0</tt>.</p>
<p>Example:</p>
<pre>        QSpinBox::up-button { top: 2px }</pre>
<p>See also <a href="stylesheet-reference.html#left-prop">left</tt></a>, <a href="stylesheet-reference.html#right-prop">right</tt></a>, and <a href="stylesheet-reference.html#bottom-prop">bottom</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b><tt>width</tt></b> <a name="width-prop"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The width of a <a href="stylesheet-reference.html#subcontrols">subcontrol</tt></a> (or a widget in some cases).<p>If this property is not specified, it defaults to a value that depends on the subcontrol/widget and on the current style.</p>
<p><b>Warning:</b> Unless otherwise specified, this property has no effect when set on widgets. If you want a widget with a fixed width, set the <a href="stylesheet-reference.html#min-width-prop">min-width</tt></a> and <a href="stylesheet-reference.html#max-width-prop">max-width</tt></a> to the same value.</p>
<p>Example:</p>
<pre>        QSpinBox::up-button { width: 12px }</pre>
<p>See also <a href="stylesheet-reference.html#height-prop">height</tt></a>.</p>
</td></tr>
</table></p>
<a name="list-of-property-types"></a>
<h2>List of Property Types</h2>
<p>The following table summarizes the syntax and meaning of the different property types.</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Type</th><th>Syntax</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><b>Alignment</b> <a name="alignment"></a></td><td>{ <tt>top</tt> <br /> | <tt>bottom</tt> <br /> | <tt>left</tt> <br /> | <tt>right</tt> <br /> | <tt>center</tt> }*</td><td>Horizontal and/or vertical alignment.<p>Example:</p>
<pre>    QTextEdit { background-position: bottom center }</pre>
</td></tr>
<tr valign="top" class="even"><td><b>Attachment</b> <a name="attachment"></a></td><td>{ <tt>scroll</tt> <br /> | <tt>fixed</tt> }*</td><td>Scroll or fixed attachment.</td></tr>
<tr valign="top" class="odd"><td><b>Background</b> <a name="background"></a></td><td>{ <a href="stylesheet-reference.html#brush">Brush</tt></a> <br /> | <a href="stylesheet-reference.html#url">Url</tt></a> <br /> | <a href="stylesheet-reference.html#repeat">Repeat</tt></a> <br /> | <a href="stylesheet-reference.html#alignment">Alignment</tt></a> }*</td><td>A sequence of <a href="stylesheet-reference.html#brush">Brush</tt></a>, <a href="stylesheet-reference.html#url">Url</tt></a>, <a href="stylesheet-reference.html#repeat">Repeat</tt></a>, and <a href="stylesheet-reference.html#alignment">Alignment</tt></a>.</td></tr>
<tr valign="top" class="even"><td><b>Boolean</b> <a name="boolean"></a></td><td>0 | 1</td><td>True (<tt>1</tt>) or false (<tt>0</tt>).<p>Example:</p>
<pre>    QDialog { etch-disabled-text: 1 }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b>Border</b> <a name="border"></a></td><td>{ <a href="stylesheet-reference.html#border-style">Border Style</tt></a> <br /> | <a href="stylesheet-reference.html#length">Length</tt></a> <br /> | <a href="stylesheet-reference.html#brush">Brush</tt></a> }*</td><td>Shorthand border property.</td></tr>
<tr valign="top" class="even"><td><b>Border <a name="border-image"></a> Image</b></td><td><tt>none</tt> <br /> | <a href="stylesheet-reference.html#url">Url</tt></a> <a href="stylesheet-reference.html#number">Number</tt></a>{4} <br /> (<tt>stretch</tt> | <tt>repeat</tt>){0,2}</td><td>A border image is an image that is composed of nine parts (top left, top center, top right, center left, center, center right, bottom left, bottom center, and bottom right). When a border of a certain size is required, the corner parts are used as is, and the top, right, bottom, and left parts are stretched or repeated to produce a border with the desired size.<p>See the <a href="http://www.w3.org/TR/css3-background/#the-border-image">CSS3 Draft Specification</tt></a> for details.</p>
</td></tr>
<tr valign="top" class="odd"><td><b>Border <a name="border-style"></a> Style</b></td><td><tt>dashed</tt> <br /> | <tt>dot-dash</tt> <br /> | <tt>dot-dot-dash</tt> <br /> | <tt>dotted</tt> <br /> | <tt>double</tt> <br /> | <tt>groove</tt> <br /> | <tt>inset</tt> <br /> | <tt>outset</tt> <br /> | <tt>ridge</tt> <br /> | <tt>solid</tt> <br /> | <tt>none</tt></td><td>Specifies the pattern used to draw a border. See the <a href="http://www.w3.org/TR/css3-background/#border-style">CSS3 Draft Specification</tt></a> for details.</td></tr>
<tr valign="top" class="even"><td><b>Box <a name="box-colors"></a> Colors</b></td><td><a href="stylesheet-reference.html#brush">Brush</tt></a>{1,4}</td><td>One to four occurrences of <a href="stylesheet-reference.html#brush">Brush</tt></a>, specifying the top, right, bottom, and left edges of a box, respectively. If the left color is not specified, it is taken to be the same as the right color. If the bottom color is not specified, it is taken to be the same as the top color. If the right color is not specified, it is taken to be the same as the top color.<p>Example:</p>
<pre>                    QLabel { border-color: red }   <span class="comment">/* red red red red   */</span>
                    QLabel { border-color: red blue } <span class="comment">/* red blue red blue */</span>
                    QLabel { border-color: red blue green } <span class="comment">/* red blue green blue
    */</span>
                    QLabel { border-color: red blue green yellow }  <span class="comment">/* red
    blue green yellow */</span></pre>
</td></tr>
<tr valign="top" class="odd"><td><b>Box <a name="box-lengths"></a> Lengths</b></td><td><a href="stylesheet-reference.html#length">Length</tt></a>{1,4}</td><td>One to four occurrences of <a href="stylesheet-reference.html#length">Length</tt></a>, specifying the top, right, bottom, and left edges of a box, respectively. If the left length is not specified, it is taken to be the same as the right length. If the bottom length is not specified, is it taken to be the same as the top length. If the right length is not specified, it is taken to be the same as the top length.<p>Examples:</p>
<pre>            QLabel { border-width: 1px }                    <span class="comment">/* 1px 1px 1px 1px */</span>
            QLabel { border-width: 1px 2px }                <span class="comment">/* 1px 2px 1px 2px */</span>
            QLabel { border-width: 1px 2px 3px }            <span class="comment">/* 1px 2px 3px 2px */</span>
            QLabel { border-width: 1px 2px 3px 4px }        <span class="comment">/* 1px 2px 3px 4px */</span></pre>
</td></tr>
<tr valign="top" class="even"><td><b>Brush</b> <a name="brush"></a></td><td><a href="stylesheet-reference.html#color">Color</tt></a> <br /> | <a href="stylesheet-reference.html#gradient">Gradient</tt></a> <br /> | <a href="stylesheet-reference.html#paletterole"><tt>PaletteRole</tt></a></td><td>Specifies a Color or a Gradient or an entry in the Palette.</td></tr>
<tr valign="top" class="odd"><td><b>Color</b> <a name="color"></a></td><td><tt>rgb(<i>r</i>, <i>g</i>, <i>b</i>)</tt> <br /> | <tt>rgba(<i>r</i>, <i>g</i>, <i>b</i>, <i>a</i>)</tt> <br /> | <tt>#<i>rrggbb</i></tt> <br /> | Color Name</tt> <br /></td><td>Specifies a color as RGB (red, green, blue) or RGBA (red, green, blue, alpha). The <tt>rgb()</tt> or <tt>rgba()</tt> syntax can be used with integer values between 0 and 255, or with percentages.<p>Examples:</p>
<pre>            QLabel { border-color: red }                    <span class="comment">/* opaque red */</span>
            QLabel { border-color: #FF0000 }                <span class="comment">/* opaque red */</span>
            QLabel { border-color: rgba(255, 0, 0, 75%) }   <span class="comment">/* 75% opaque red */</span>
            QLabel { border-color: rgb(255, 0, 0) }         <span class="comment">/* opaque red */</span>
            QLabel { border-color: rgb(100%, 0%, 0%) }      <span class="comment">/* opaque red */</span></pre>
</td></tr>
<tr valign="top" class="even"><td><b>Font</b> <a name="font"></a></td><td>(<a href="stylesheet-reference.html#font-style">Font Style</tt></a> | <a href="stylesheet-reference.html#font-weight">Font Weight</tt></a>){0,2} <a href="stylesheet-reference.html#font-size">Font Size</tt></a> String</td><td>Shorthand font property.</td></tr>
<tr valign="top" class="odd"><td><b>Font <a name="font-size"></a> Size</b></td><td><a href="stylesheet-reference.html#length">Length</tt></a></td><td>The size of a font.</td></tr>
<tr valign="top" class="even"><td><b>Font <a name="font-style"></a> Style</b></td><td><tt>normal</tt> <br /> | <tt>italic</tt> <br /> | <tt>oblique</tt></td><td>The style of a font.</td></tr>
<tr valign="top" class="odd"><td><b>Font <a name="font-weight"></a> Weight</b></td><td><tt>normal</tt> <br /> | <tt>bold</tt> <br /> | <tt>100</tt> <br /> | <tt>200</tt> <br /> ..&#x2e; <br /> | <tt>900</tt></td><td>The weight of a font.</td></tr>
<tr valign="top" class="even"><td><b>Gradient</b> <a name="gradient"></a></td><td><tt>qlineargradient</tt> <br /> | <tt>qradialgradient</tt> <br /> | <tt>qconicalgradient</tt></td><td>Specifies gradient fills. There are three types of gradient fills:<ul>
<li><i>Linear</i> gradients interpolate colors between start and end points.</li>
<li><i>Radial</i> gradients interpolate colors between a focal point and end points on a circle surrounding it.</li>
<li><i>Conical</i> gradients interpolate colors around a center point.</li>
</ul>
<p>Gradients are specified in Object Bounding Mode. Imagine the box in which the gradient is rendered, to have its top left corner at (0, 0) and its bottom right corner at (1, 1). Gradient parameters are then specified as percentages from 0 to 1. These values are extrapolated to actual box coordinates at runtime. It is possible specify values that lie outside the bounding box (-0.6 or 1.8, for instance).</p>
<p><b>Warning:</b> The stops have to appear sorted in ascending order.</p>
<p>Examples:</p>
<pre>                <span class="comment">/* linear gradient from white to green */</span>
                QTextEdit {
                    background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                                stop:0 white, stop: 0.4 gray, stop:1 green)
                }

                <span class="comment">/* linear gradient from white to green */</span>
                QTextEdit {
                    background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                                stop:0 white, stop: 0.4 rgba(10, 20, 30, 40), stop:1 rgb(0, 200, 230, 200))
                }


                <span class="comment">/* conical gradient from white to green */</span>
                QTextEdit {
                    background: qconicalgradient(cx:0.5, cy:0.5, angle:30,
                                stop:0 white, stop:1 #00FF00)
                }

                <span class="comment">/* radial gradient from white to green */</span>
                QTextEdit {
                    background: qradialgradient(cx:0, cy:0, radius: 1,
                                fx:0.5, fy:0.5, stop:0 white, stop:1 green)
                }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b>Length</b> <a name="length"></a></td><td><a href="stylesheet-reference.html#number">Number</tt></a> (<tt>px</tt> | <tt>pt</tt> | <tt>em</tt> | <tt>ex</tt>)?</td><td>A number followed by a measurement unit. The supported units are:<ul>
<li><tt>px</tt>: pixels (the default when no units are specified)</li>
<li><tt>pt</tt>: the size of one point (i.e&#x2e;, 1/72 of an inch)</li>
<li><tt>em</tt>: the em width of the font (i.e&#x2e;, the width of 'M')</li>
<li><tt>ex</tt>: the ex width of the font (i.e&#x2e;, the height of 'x')</li>
</ul>
</td></tr>
<tr valign="top" class="even"><td><b>Number</b> <a name="number"></a></td><td>A decimal integer or a real number</td><td>Examples: <tt>0</tt>, <tt>18</tt>, <tt>+127</tt>, <tt>-255</tt>, <tt>12.34</tt>, <tt>-.5</tt>, <tt>0009</tt>.</td></tr>
<tr valign="top" class="odd"><td><b>Origin</b> <a name="origin"></a></td><td><tt>margin</tt> <br /> | <tt>border</tt> <br /> | <tt>padding</tt> <br /> | <tt>content</tt></td><td>Indicates which of four rectangles to use.<ul>
<li><tt>margin</tt>: The margin rectangle. The margin falls outside the border.</li>
<li><tt>border</tt>: The border rectangle. This is where any border is drawn.</li>
<li><tt>padding</tt>: The padding rectangle. Unlike the margins, padding is located inside the border.</li>
<li><tt>content</tt>: The content rectangle. This specifies where the actual contents go, excluding any padding, border, or margin.</li>
</ul>
<p>See also <a href="stylesheet-customizing.html#the-box-model">The Box Model</tt></a>.</p>
</td></tr>
<tr valign="top" class="even"><td><b>PaletteRole</b> <a name="paletterole"></a></td><td><tt>alternate-base</tt> <br /> | <tt>base</tt> <br /> | <tt>bright-text</tt> <br /> | <tt>button</tt> <br /> | <tt>button-text</tt> <br /> | <tt>dark</tt> <br /> | <tt>highlight</tt> <br /> | <tt>highlighted-text</tt> <br /> | <tt>light</tt> <br /> | <tt>link</tt> <br /> | <tt>link-visited</tt> <br /> | <tt>mid</tt> <br /> | <tt>mid-light</tt> <br /> | <tt>shadow</tt> <br /> | <tt>text</tt> <br /> | <tt>window</tt> <br /> | <tt>window-text</tt> <br /></td><td>These values correspond the Color roles</tt> in the widget's <a href="gui/QPalette.html"><tt>QPalette</tt></a>.<p>For example,</p>
<pre>                    QPushButton { color: palette(dark); }</pre>
</td></tr>
<tr valign="top" class="odd"><td><b>Radius</b> <a name="radius"></a></td><td><a href="stylesheet-reference.html#length">Length</tt></a>{1, 2}</td><td>One or two occurrences of <a href="stylesheet-reference.html#length">Length</tt></a>. If only one length is specified, it is used as the radius of the quarter circle defining the corner. If two lengths are specified, the first length is the horizontal radius of a quarter ellipse, whereas the second length is the vertical radius.</td></tr>
<tr valign="top" class="even"><td><b>Repeat</b> <a name="repeat"></a></td><td><tt>repeat-x</tt> <br /> | <tt>repeat-y</tt> <br /> | <tt>repeat</tt> <br /> | <tt>no-repeat</tt></td><td>A value indicating the nature of repetition.<ul>
<li><tt>repeat-x</tt>: Repeat horizontally.</li>
<li><tt>repeat-y</tt>: Repeat vertically.</li>
<li><tt>repeat</tt>: Repeat horizontally and vertically.</li>
<li><tt>no-repeat</tt>: Don't repeat.</li>
</ul>
</td></tr>
<tr valign="top" class="odd"><td><b>Url</b> <a name="url"></a></td><td><tt>url(<i>filename</i>)</tt></td><td><tt><i>filename</i></tt> is the name of a file on the local disk or stored using <a href="resources.html">the Qt Resource System</tt></a>. Setting an image implicitly sets the width and height of the element.</td></tr>
</table></p>
<a name="list-of-pseudo-states"></a>
<h2>List of Pseudo-States</h2>
<p>The following pseudo-states are supported:</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Pseudo-State</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><tt>:adjoins-item</tt> <a name="adjoins-item-ps"></a></td><td>This state is set when the the <a href="stylesheet-reference.html#branch-sub">::branch</a> of a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a> is adjacent to an item.</td></tr>
<tr valign="top" class="even"><td><tt>:bottom</tt> <a name="bottom-ps"></a></td><td>The item is positioned at the bottom. For example, a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> that has its tabs positioned at the bottom.</td></tr>
<tr valign="top" class="odd"><td><tt>:checked</tt> <a name="checked-ps"></a></td><td>The item is checked. For example, the checked</tt> state of <a href="gui/QAbstractButton.html"><tt>QAbstractButton</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:closed</tt> <a name="closed-ps"></a></td><td>The item is in the closed state. For example, an non-expanded item in a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a></td></tr>
<tr valign="top" class="odd"><td><tt>:default</tt> <a name="default-ps"></a></td><td>The item is the default. For example, a default</tt> <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> or a default action in a <a href="gui/QMenu.html"><tt>QMenu</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:disabled</tt> <a name="disabled-ps"></a></td><td>The item is disabled</tt>.</td></tr>
<tr valign="top" class="odd"><td><tt>:editable</tt> <a name="editable-ps"></a></td><td>The <a href="gui/QComboBox.html"><tt>QComboBox</tt></a> is editable.</td></tr>
<tr valign="top" class="even"><td><tt>:enabled</tt> <a name="enabled-ps"></a></td><td>The item is enabled</tt>.</td></tr>
<tr valign="top" class="odd"><td><tt>:exclusive</tt> <a name="exclusive-ps"></a></td><td>The item is part of an exclusive item group. For example, a menu item in a exclusive <a href="gui/QActionGroup.html"><tt>QActionGroup</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:first</tt> <a name="first-ps"></a></td><td>The item is the first (in a list). For example, the first tab in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:flat</tt> <a name="flat-ps"></a></td><td>The item is flat. For example, a flat</tt> <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:focus</tt> <a name="focus-ps"></a></td><td>The item has input focus</tt>.</td></tr>
<tr valign="top" class="odd"><td><tt>:has-children</tt> <a name="has-children-ps"></a></td><td>The item has children. For example, an item in a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a> that has child items.</td></tr>
<tr valign="top" class="even"><td><tt>:has-siblings</tt> <a name="has-siblings-ps"></a></td><td>The item has siblings. For example, an item in a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a> that siblings.</td></tr>
<tr valign="top" class="odd"><td><tt>:horizontal</tt> <a name="horizontal-ps"></a></td><td>The item has horizontal orientation</td></tr>
<tr valign="top" class="even"><td><tt>:hover</tt> <a name="hover-ps"></a></td><td>The mouse is hovering over the item.</td></tr>
<tr valign="top" class="odd"><td><tt>:indeterminate</tt> <a name="indeterminate-ps"></a></td><td>The item has indeterminate state. For example, a <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a> or <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a> is partially checked</tt>.</td></tr>
<tr valign="top" class="even"><td><tt>:last</tt> <a name="last-ps"></a></td><td>The item is the last (in a list). For example, the last tab in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:left</tt> <a name="left-ps"></a></td><td>The item is positioned at the left. For example, a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> that has its tabs positioned at the left.</td></tr>
<tr valign="top" class="even"><td><tt>:middle</tt> <a name="middle-ps"></a></td><td>The item is in the middle (in a list). For example, a tab that is not in the beginning or the end in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:no-frame</tt> <a name="no-frame-ps"></a></td><td>The item has no frame. For example, a frameless <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a> or <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:non-exclusive</tt> <a name="non-exclusive-ps"></a></td><td>The item is part of a non-exclusive item group. For example, a menu item in a non-exclusive <a href="gui/QActionGroup.html"><tt>QActionGroup</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:off</tt> <a name="off-ps"></a></td><td>For items that can be toggled, this applies to items in the &quot;off&quot; state.</td></tr>
<tr valign="top" class="even"><td><tt>:on</tt> <a name="on-ps"></a></td><td>For items that can be toggled, this applies to widgets in the &quot;on&quot; state.</td></tr>
<tr valign="top" class="odd"><td><tt>:only-one</tt> <a name="only-one-ps"></a></td><td>The item is the only one (in a list). For example, a lone tab in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>:open</tt> <a name="open-ps"></a></td><td>The item is in the open state. For example, an expanded item in a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a>, or a <a href="gui/QComboBox.html"><tt>QComboBox</tt></a> or <a href="gui/QPushButton.html"><tt>QPushButton</tt></a> with an open menu.</td></tr>
<tr valign="top" class="odd"><td><tt>:next-selected</tt> <a name="next-selected-ps"></a></td><td>The next item (in a list) is selected. For example, the selected tab of a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> is next to this item.</td></tr>
<tr valign="top" class="even"><td><tt>:pressed</tt> <a name="pressed-ps"></a></td><td>The item is being pressed using the mouse.</td></tr>
<tr valign="top" class="odd"><td><tt>:previous-selected</tt> <a name="previous-selected-ps"></a></td><td>The previous item (in a list) is selected. For example, a tab in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> that is next to the selected tab.</td></tr>
<tr valign="top" class="even"><td><tt>:read-only</tt> <a name="read-only-ps"></a></td><td>The item is marked read only or non-editable. For example, a read only <a href="gui/QLineEdit.html"><tt>QLineEdit</tt></a> or a non-editable <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:right</tt> <a name="right-ps"></a></td><td>The item is positioned at the right. For example, a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> that has its tabs positioned at the right.</td></tr>
<tr valign="top" class="even"><td><tt>:selected</tt> <a name="selected-ps"></a></td><td>The item is selected. For example, the selected tab in a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> or the selected item in a <a href="gui/QMenu.html"><tt>QMenu</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>:top</tt> <a name="top-ps"></a></td><td>The item is positioned at the top. For example, a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> that has its tabs positioned at the top.</td></tr>
<tr valign="top" class="even"><td><tt>:unchecked</tt> <a name="unchecked-ps"></a></td><td>The item is unchecked</tt>.</td></tr>
<tr valign="top" class="odd"><td><tt>:vertical</tt> <a name="vertical-ps"></a></td><td>The item has vertical orientation.</td></tr>
</table></p>
<a name="subcontrols"></a><a name="list-of-sub-controls"></a>
<h2>List of Sub-Controls</h2>
<p>The following subcontrols are available:</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Sub-Control</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><tt>::add-line</tt> <a name="add-line-sub"></a></td><td>The button to add a line of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::add-page</tt> <a name="add-page-sub"></a></td><td>The region between the handle (slider) and the <a href="stylesheet-reference.html#add-line-sub">add-line</tt></a> of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::branch</tt> <a name="branch-sub"></a></td><td>The branch indicator of a <a href="gui/QTreeView.html"><tt>QTreeView</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::chunk</tt> <a name="chunk-sub"></a></td><td>The progress chunk of a <a href="gui/QProgressBar.html"><tt>QProgressBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::down-arrow</tt> <a name="down-arrow-sub"></a></td><td>The down arrow of a <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>, <a href="gui/QHeaderView.html"><tt>QHeaderView</tt></a> (sort indicator), <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> or <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::down-button</tt> <a name="down-button-sub"></a></td><td>The down button of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> or a <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::drop-down</tt> <a name="drop-down-sub"></a></td><td>The drop-down button of a <a href="gui/QComboBox.html"><tt>QComboBox</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::groove</tt> <a name="groove-sub"></a></td><td>The groove of a <a href="gui/QSlider.html"><tt>QSlider</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::indicator</tt> <a name="indicator-sub"></a></td><td>The indicator of a <a href="gui/QCheckBox.html"><tt>QCheckBox</tt></a>, a <a href="gui/QRadioButton.html"><tt>QRadioButton</tt></a>, a checkable <a href="gui/QMenu.html"><tt>QMenu</tt></a> item or a checkable <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::handle</tt> <a name="handle-sub"></a></td><td>The handle (slider) of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> or a <a href="gui/QSlider.html"><tt>QSlider</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::item</tt> <a name="item-sub"></a></td><td>An item of a <a href="gui/QMenuBar.html"><tt>QMenuBar</tt></a>, a <a href="gui/QMenu.html"><tt>QMenu</tt></a>, or a <a href="gui/QStatusBar.html"><tt>QStatusBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::left-arrow</tt> <a name="left-arrow-sub"></a></td><td>The left arrow of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::left-corner</tt> <a name="left-corner-sub"></a></td><td>The left corner of a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>. For example, this control can be used to control position the left corner widget in a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::menu-arrow</tt> <a name="menu-arrow-sub"></a></td><td>The arrow of a <a href="gui/QToolButton.html"><tt>QToolButton</tt></a> with a menu.</td></tr>
<tr valign="top" class="odd"><td><tt>::menu-button</tt> <a name="menu-button-sub"></a></td><td>The menu button of a <a href="gui/QToolButton.html"><tt>QToolButton</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::menu-indicator</tt> <a name="menu-indicator-sub"></a></td><td>The menu indicator of a <a href="gui/QPushButton.html"><tt>QPushButton</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::right-arrow</tt> <a name="right-arrow-sub"></a></td><td>The right arrow of a <a href="gui/QMenu.html"><tt>QMenu</tt></a> or a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::pane</tt> <a name="pane-sub"></a></td><td>The pane (frame) of a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::right-corner</tt> <a name="right-corner-sub"></a></td><td>The right corner of a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>. For example, this control can be used to control the position the right corner widget in a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::scroller</tt> <a name="scroller-sub"></a></td><td>The scroller of a <a href="gui/QMenu.html"><tt>QMenu</tt></a> or <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::section</tt> <a name="section-sub"></a></td><td>The section of a <a href="gui/QHeaderView.html"><tt>QHeaderView</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::separator</tt> <a name="separator-sub"></a></td><td>The separator of a <a href="gui/QMenu.html"><tt>QMenu</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::sub-line</tt> <a name="sub-line-sub"></a></td><td>The button to subtract a line of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::sub-page</tt> <a name="sub-page-sub"></a></td><td>The region between the handle (slider) and the <a href="stylesheet-reference.html#sub-line-sub">sub-line</tt></a> of a <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::tab</tt> <a name="tab-sub"></a></td><td>The tab of a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> or <a href="gui/QToolBox.html"><tt>QToolBox</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::tab-bar</tt> <a name="tab-bar-sub"></a></td><td>The tab bar of a <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>. This subcontrol exists only to control the position of the <a href="gui/QTabBar.html"><tt>QTabBar</tt></a> inside the <a href="gui/QTabWidget.html"><tt>QTabWidget</tt></a>. To style the tabs using the <a href="stylesheet-reference.html#tab-sub">::tab</a> subcontrol.</td></tr>
<tr valign="top" class="odd"><td><tt>::tear</tt> <a name="tear-sub"></a></td><td>The tear indicator of a <a href="gui/QTabBar.html"><tt>QTabBar</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::tear-off</tt> <a name="tear-off-sub"></a></td><td>The tear-off indicator of a <a href="gui/QMenu.html"><tt>QMenu</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::title</tt> <a name="title-sub"></a></td><td>The title of a <a href="gui/QGroupBox.html"><tt>QGroupBox</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>::up-arrow</tt> <a name="up-arrow-sub"></a></td><td>The up arrow of a <a href="gui/QHeaderView.html"><tt>QHeaderView</tt></a> (sort indicator), <a href="gui/QScrollBar.html"><tt>QScrollBar</tt></a> or a <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>::up-button</tt> <a name="up-button-sub"></a></td><td>The up button of a <a href="gui/QSpinBox.html"><tt>QSpinBox</tt></a>.</td></tr>
</table></p>
<p>See <a href="stylesheet-examples.html#customizing-the-qpushbutton-s-menu-indicator-sub-control"><tt>Customizing the QPushButton's Menu Indicator Sub-Control</tt></a> for an example of how to customize a subcontrol.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2007 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Jambi </div></td>
</tr></table></div></address></body>
</html>