<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                * ## [項目列表](#) | [Qt樣式單參考](#__RefHeading__8571_1947317750) | | [可進行樣式設置的部件列表](#__RefHeading__8573_1947317750) | | [屬性列表](#__RefHeading__8575_1947317750) | | [圖標列表](#__RefHeading__8577_1947317750) | | [屬性類型列表](#__RefHeading__8579_1947317750) | | [偽狀態列表](#__RefHeading__8581_1947317750) | | [子控件列表](#__RefHeading__8583_1947317750) | 請在py文件進行調用 [Home](index.html)?·?[All Classes](index.htm)?·?[Modules](index.htm)??·?[QSS HELP](qss.html)??·?[QSS 案例](qtqss.html)?·?[VER007 HOME](HTTP://VER007.COM) # Qt4.7文檔翻譯:Qt樣式單參考,Qt Style Sheets Reference ## <colgroup><col width="152"> <col width="591"></colgroup> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [屬性類型](#list-of-property-types) 來進行賦值。除非另外有說明,否則以下的屬性對所有部件都有用。帶有星號*的屬性是Qt 特有的,在CSS2 或CSS3 中沒有等價屬性。 <colgroup><col width="168"> <col width="68"> <col width="507"></colgroup> | 屬性 | 類型 | 說明 | | alternate-background-color | [Brush](#brush) | 在 [QAbstractItemView](qabstractitemview.html)子類中使用的交替背景色。如果這個屬性沒有設置的話,那么默認值就是為調色板(palette)的AlternateBase角色(role)設置的值。示例:QTreeView {alternate-background-color: blue;background: yellow;}參考 [background](#background-prop)和 [selection-background-color](#selection-background-color-prop)。 | | background | [Background](#background) | 用來設置背景的省寫(Shorthand)方式。等價于設置background-color、background-image、background-repeat和/或background-position。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QDialog](qdialog.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)、 [QToolTip](qtooltip.html)和普通的 [QWidget](qwidget.html)支持。示例:QTextEdit { background: yellow }通常,有必要設置一個類似Qt::BrushStyle中的樣式的填充模式。你可以為Qt::SolidPattern、Qt::RadialGradientPattern、Qt::LinearGradientPattern和Qt::ConicalGradientPattern使用背景色(background-color)屬性。其它模式也可以很簡單地通過創建一個包含那種模式的背景圖片的方式來實現。示例:QLabel {background-image: url(dense6pattern.png);background-repeat: repeat-xy;}參考 [background-origin](#background-origin-prop)、[selection-background-](#selection-background-color-prop) [color](#selection-background-color-prop)、 [background-clip](#background-clip-prop)、 [background-attachment](#background-attachment-prop)和 [alternate-background-color](#alternate-background-color-prop)。 | | background- color | [Brush](#brush) | 為這個部件使用的背景顏色。示例:QLabel { background-color: yellow }QLineEdit { background-color: rgb(255, 0, 0) } | | background-image | [Url](#url) | 為這個部件使用的背景圖片。圖片的半透明部分會露出背景顏色(background-color)。示例:QFrame { background-image: url(:/../img/hydro.png) } | | background-repeat | [Repeat](#repeat) | 在填充background-origin矩形的過程中,背景圖片是否要重要,以及如何重復。如果沒有設置的話,則背景圖片在兩個方向上都重復(repeat)。示例:QFrame {background: white url(:/../img/ring.png);background-repeat: repeat-y;background-position: left;} | | background-position | [Alignment](#alignment) | 背景圖片在background-origin矩形中的對齊方式。沒有設置的話,則對齊方式是top left(左上)。Example:QFrame {background: url(:/../img/footer.png);background-position: bottom left;} | | background-attachment | [Attachment](#attachment) | 確定在一個 [QAbstractScrollArea](qabstractscrollarea.html)中的背景圖片是否會隨視口(viewport)滾動。默認情況下,背景圖片會隨視口滾動。示例:QTextEdit {background-image: url("leaves.png");background-attachment: fixed;}參考 [background](#background-prop)。 | | background-clip | [Origin](#origin) | 在部件的矩形區域中繪制背景(background)的區域。這個屬性指定的是background-color和background-image在其中被修剪(clipped)的矩形區域。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QDialog](qdialog.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)、 [QToolTip](qtooltip.html)和普通的 [QWidget](qwidget.html)支持。如果這個屬性沒有設置的話,則默認值是border。示例:QFrame {background-image: url(:/../img/header.png);background-position: top left;background-origin: content;background-clip: padding;}參考 [background](#background-prop)、 [background-origin](#background-origin-prop)和盒狀模型(The Box Model)。 | | background-origin | [Origin](#origin) | 部件的背景矩形區域,與background-position和background-image結合使用。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QDialog](qdialog.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)、 [QToolTip](qtooltip.html)和普通的 [QWidget](qwidget.html)支持。如果這個屬性沒有設置的話,則默認值是padding。示例:QFrame {background-image: url(:/../img/header.png);background-position: top left;background-origin: content;}參考 [background](#background-prop)和盒狀模型。 | | border | [Border](#border) | 用來設置部件的邊框的省寫方式。等價于設置border-color、border-style和/或border-width。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)、 [QToolTip](qtooltip.html)和普通 [QWidget](qwidget.html)支持。示例:QLineEdit { border: 1px solid white } | | border-top | [Border](#border) | 用來設置部件的頂部邊框的省寫方式。等價于設置border-top-color、border-top-style和/或border-top-width。 | | border-right | [Border](#border) | 用來設置部件的右側邊框的省寫方式。等價于設置border-right-color、border-right-style和/或border-right-width。 | | border-bottom | [Border](#border) | 用來設置部件的底部邊框的省寫方式。等價于設置border-bottom-color、border-bottom-style和/或border-bottom-width。 | | border-left | [Border](#border) | 用來設置部件的左側邊框的省寫方式。等價于設置border-left-color、border-left-style和/或border-left-width。 | | border-color | [Box Colors](#box-colors) | 邊框的所有邊的顏色。等價于指定border-top-color、border-right-color、border-bottom-color和border-left-color。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)、 [QToolTip](qtooltip.html)和普通 [QWidget](qwidget.html)支持。如果這個屬性沒有指定,則默認是 [color](#color-prop)(也就是說,部件的前景色)。示例:QLineEdit {border-width: 1px;border-style: solid;border-color: white;}參考 [border-style](#border-style-prop)、 [border-width](#border-width-prop)、 [border-image](#border-image-prop)和盒狀模型。 | | border-top-color | [Brush](#brush) | 邊框的頂部邊線的顏色。 | | border-right-color | [Brush](#brush) | 邊框的右側邊線的顏色。 | | border-bottom-color | [Brush](#brush) | 邊框的底部邊線的顏色。 | | border-left-color | [Brush](#brush) | 邊框的左側邊線的顏色。 | | border-image | [Border Image](#border-image) | 用來填充邊框的圖片。圖片被切成9塊,并且在必要的時候還會被拉伸(stretched)。參考 [Border Image](#border-image)以了解細節。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。參考 [border-color](#border-color-prop)、 [border-style](#border-style-prop)、 [border-width](#border-width-prop)和盒狀模型。 | | border-radius | [Radius](#radius) | 邊框的邊角的半徑。等價于指定border-top-left-radius、border-top-right-radius、border-bottom-right-radius和border-bottom-left-radius。邊框半徑(border-radius)會修剪(clips)這個元素的背景( [background](#background-prop))。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果這個屬性沒有指定的話,那么它的默認值是0。示例:QLineEdit {border-width: 1px;border-style: solid;border-radius: 4px;}參考 [border-width](#border-width-prop)和盒狀模型。 | | border-top-left-radius | [Radius](#radius) | 邊框的左上角的半徑。 | | border-top-right-radius | [Radius](#radius) | 邊框的右上角的半徑。 | | border-bottom-right-radius | [Radius](#radius) | 邊框的右下角的半徑。將這個屬性設置成正數的值就會產生圓角。 | | border-bottom-left-radius | [Radius](#radius) | 邊框的左下角的半徑。將這個屬性設置成正數的值就會產生圓角。 | | border-style | [Border Style](#border-style) | 邊框的所有邊線的風格。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果這個屬性沒有指定,則默認值是無(none)。示例:QLineEdit {border-width: 1px;border-style: solid;border-color: blue;}參考 [border-color](#border-color-prop)、 [border-style](#border-style-prop)、 [border-image](#border-image-prop)和盒狀模型。 | | border-top- style | [Border ](#border-style)[Style](#border-style) | 邊框的頂部邊線的風格。 | | border-right-style | [Border Style](#border-style) | 邊框的右側邊線的風格。 | | border-bottom-style | [Border Style](#border-style) | 邊框的底部邊線的風格。 | | border-left-style | [Border Style](#border-style) | 邊框的左側邊線的風格。 | | border-width | [Box Lengths](#box-lengths) | 邊框的寬度。等價于設置border-top-width、border-right-width、border-bottom-width和border-left-width。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。示例:QLineEdit {border-width: 2px;border-style: solid;border-color: darkblue;}參考 [border-color](#border-color-prop)、 [border-radius](#border-radius-prop)、 [border-style](#border-style-prop)、 [border-image](#border-image-prop)和盒狀模型。 | | border-top-width | [Length](#length) | 邊框的頂部邊線的寬度。 | | border-right-width | [Length](#length) | 邊框的右側邊線的寬度。 | | border-bottom-width | [Length](#length) | 邊框的底部邊線的寬度。 | | border-left-width | [Length](#length) | 邊框的左側邊線的寬度。 | | bottom | [Length](#length) | 如果 [position](#position-prop)(位置)是relative(相對的)(默認值),則將一個子控件( [subcontrol](#subcontrols))向上移動一定的位置;在那種情況下,指定bottom:? y等價于指定 [top](#top-prop) : - y。如果 [position](#position-prop)是absolute(絕對的),則bottom屬性指定的是這個子控件的底部邊線相對于親代(parent)部件的底部邊線的位置(參考 [subcontrol-origin](#subcontrol-origin-prop))。示例:QSpinBox::down-button { bottom: 2px }參考 [left](#left-prop)、 [right](#right-prop)和 [top](#top-prop)。 | | button-layout | [Number](#number) | 在一個 [QDialogButtonBox](qdialogbuttonbox.html)或 [QMessageBox](qmessagebox.html)中的按鈕的布局。可選值是0 (WinLayout)、1 (MacLayout)、2 (KdeLayout)和3 (GnomeLayout)。如果這個屬性沒有指定的話,則默認值是由當前風格中的SH_DialogButtonLayout風格提示來確定的。示例:* { button-layout: 2 } | | color | [Brush](#brush) | 用來渲染文字的顏色。所有支持(respect)QWidget::palette的部件都支持這個屬性。如果這個屬性沒有設置的話,則默認值是為這個部件的調色板設置的QWidget::foregroundRole 的值(通常是黑色)。示例:QPushButton { color: red }參考 [background](#background-prop)和 [selection-color](#selection-color-prop)。 | | dialogbuttonbox-buttons-have-icons | [Boolean](#boolean) | [QDialogButtonBox](qdialogbuttonbox.html)中的按鈕是否要顯示圖標。如果這個屬性設置為1,則 [QDialogButtonBox](qdialogbuttonbox.html)中的按鈕顯示圖標;如果設置為0,則不顯示圖標。參考[List of Icons](#list-of-icons) (圖標列表)小節以了解如何設置圖標。QDialogButtonBox { dialogbuttonbox-buttons-have-icons: 1; }注意:定義咯這個屬性的樣式必須在 [QDialogButtonBox](qdialogbuttonbox.html)被創建之前就應用;也就是說妳必須將樣式應用到它的親代部件或者直接應用到程序本身。 | | font | [Font](#font) | 用來設置文字的字體的省寫方式。等價于設置font-family、font-size、font-style和/或font-weight。所有支持QWidget::font的部件都支持這個屬性。如果沒有設置,則默認值是QWidget::font。示例:QCheckBox { font: bold italic large "Times New Roman" } | | font-family | String | 字體族(family)。示例:QCheckBox { font-family: "New Century Schoolbook" } | | font-size | [Font Size](#font-size) | 字體大小。在這個版本的Qt 中,只支持pt 和px 單位。示例:QTextEdit { font-size: 12px } | | font-style | [Font](#font-style) [Style](#font-style) | 字體風格。示例:QTextEdit { font-style: italic } | | font-weight | [Font Weight](#font-weight) | 字體的重量(weight)。 | | gridline-color* | [Color](#color) | 在 [QTableView](qtableview.html)中的網格線的顏色。如果沒有設置的話,則默認值是當前風格中為SH_Table_GridLineColor樣式提示指定的值。示例:* { gridline-color: gray } | | height | [Length](#length) | 一個子控件( [subcontrol](#subcontrols))(在某些情況下,是部件)的高度。如果這個屬性沒有設置,則默認值取決于子控件/部件本身及當前的風格。警告:除非另有說明,否則這個屬性對部件無效。如果妳想要某個部件擁有固定的高度,則將 [min-height](#min-width-prop)和 [max-height](#max-width-prop)設置成同一個值。示例:QSpinBox::down-button { height: 10px }參考 [width](#width-prop)。 | | icon-size | [Length](#length) | 某個部件中的圖標的寬度和高度。以下部件的圖標尺寸可使用這個屬性來設置。 * ? [QCheckBox](qcheckbox.html) * ? [QListView](qlistview.html) * ? [QPushButton](qpushbutton.html) * ? [QRadioButton](qradiobutton.html) * ? [QTabBar](qtabbar.html) * ? [QToolBar](qtoolbar.html) * ? [QToolBox](qtoolbox.html) * ? [QTreeView](qtreeview.html) | | image* | [Url](#url)+ | 被繪制到一個子控件( [subcontrol](#subcontrols))的內容區域的圖片。image(圖片)屬性接受一組 [Url](#url)(統一資源定位器)或一個svg(可縮放矢量圖)。實際繪制的圖片是由與 [QIcon](qicon.html)相同的算法來確定的,(也就是說)圖片絕不會被放大但必要的時候一定會縮小。如果指定咯一個svg,則圖片會縮放到內容區域的大小。在子控件上設置圖片會隱式地設置那個子控件的寬度和高度(除非圖片是一個SVG)。在Qt 4.3 和以后的版本中,可使用 [image-position](#image-position-prop)來指定圖片在矩形區域中的對齊方式。這個屬性是只為子控件( [subcontrol](#subcontrols))設計的--我們不在其它元素中支持它。警告:需要有[QIcon](qicon.html) SVG 插件才能渲染SVG 圖片。示例:/* 隱式地將down-button 的大小設置成spindown.png 的大小 */QSpinBox::down-button { image: url(:/../img/spindown.png) } | | image-position | [alignme](#alignment) [nt](#alignment) | 在Qt 4.3 及以后的版本中,圖片的位置可使用相對定位和絕對定位來設置。 | | left | [Length](#length) | 如果 [position](#position-prop)(位置)是relative(相對的)(默認值),則將某個 [subcontrol](#subcontrols)(子控件)向右移動一定距離。如果 [position](#position-prop)是absolute(絕對的),則left屬性指定的是這個子控件的左邊線與親代部件的左邊線的相對位置(參考 [subcontrol-origin](#subcontrol-origin-prop))。如果沒有設置,則默認值是0。示例:QSpinBox::down-button { left: 2px }參考 [right](#right-prop)、 [top](#top-prop)和 [bottom](#bottom-prop)。 | | lineedit-password-character* | [Number](#number) | 以Unicode(統一碼)指定的 [QLineEdit](qlineedit.html)密碼字符。如果這個屬性沒有設置,則默認值是由當前風格中的SH_LineEdit_PasswordCharacter樣式提示確定的。示例:* { lineedit-password-character: 9679 } | | margin | [Box Lengths](#box-lengths) | 部件的邊距(margins)。等價于指定margin-top、margin-right、margin-bottom和margin-left。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果沒有設置的話,默認為0。示例:QLineEdit { margin: 2px }參考 [padding](#padding-prop)、 [spacing](#spacing-prop)和盒狀模型。 | | margin-top | [Length](#length) | 部件的頂部邊距。 | | margin-right | [Length](#length) | 部件的右側邊距。 | | margin-bottom | [Length](#length) | 部件的底部邊距。 | | margin-left | [Length](#length) | 部件的左側邊距。 | | max-height | [Length](#length) | 這個部件或者其子控件的最大高度。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSizeGrip](qsizegrip.html)、 [QSpinBox](qspinbox.html)、 [QSplitter](qsplitter.html)、 [QStatusBar](qstatusbar.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。這個值是相對于盒狀模型中的內容區域的。示例:QSpinBox { max-height: 24px }參考 [max-width](#max-width-prop)。 | | max-width | [Length](#length) | 這個部件或者其子控件的最大寬度。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSizeGrip](qsizegrip.html)、 [QSpinBox](qspinbox.html)、 [QSplitter](qsplitter.html)、 [QStatusBar](qstatusbar.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。這個值是相對于盒狀模型中的內容區域的。示例:QComboBox { max-width: 72px }參考 [max-height](#max-height-prop)。 | | messagebox-text-interaction-flags* | [Number](#number) | 在消息框中的文字的交互行為。可能取的值取決于Qt::TextInteractionFlags。如果屬性沒有設置的話,則默認值是由當前風格中的SH_MessageBox_TextInteractionFlags樣式提示確定的。示例:QMessageBox { messagebox-text-interaction-flags: 5 } | | min-height | [Length](#length) | 這個部件或者其子控件的最小高度。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSizeGrip](qsizegrip.html)、 [QSpinBox](qspinbox.html)、 [QSplitter](qsplitter.html)、 [QStatusBar](qstatusbar.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果這個屬性沒有指定的話,則最小高度是基于這個部件的內容和樣式來繼承的。這個值是相對于盒狀模型中的內容區域的。示例:QComboBox { min-height: 24px }參考 [min-width](#min-width-prop)。 | | min-width | [Length](#length) | 這個部件或者其子控件的最小寬度。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、[Q](qlineedit.html) [LineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSizeGrip](qsizegrip.html)、 [QSpinBox](qspinbox.html)、 [QSplitter](qsplitter.html)、 [QStatusBar](qstatusbar.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果這個屬性沒有指定的話,則最小寬度是基于這個部件的內容和樣式來繼承的。這個值是相對于盒狀模型中的內容區域的。示例:QComboBox { min-width: 72px }參考 [min-height](#min-height-prop)。 | | opacity* | [Number](#number) | 某個部件的透明度。取值范圍從0 (透明)到255 (不透明)。當前只被工具提示( [tooltips](qtooltip.html))支持。如果這個屬性沒有設置,則默認值由當前風格中的SH_ToolTipLabel_Opacity樣式提示確定。示例:QToolTip { opacity: 223 } | | padding | [Box](#box-lengths) [Lengths](#box-lengths) | 這個部件的填充寬度(padding)。等價于設置padding-top、padding-right、padding-bottom和padding-left。這個屬性被 [QAbstractItemView](qabstractitemview.html)子類、 [QAbstractSpinBox](qabstractspinbox.html)子類、 [QCheckBox](qcheckbox.html)、 [QComboBox](qcombobox.html)、 [QFrame](qframe.html)、 [QGroupBox](qgroupbox.html)、 [QLabel](qlabel.html)、 [QLineEdit](qlineedit.html)、 [QMenu](qmenu.html)、 [QMenuBar](qmenubar.html)、 [QPushButton](qpushbutton.html)、 [QRadioButton](qradiobutton.html)、 [QSplitter](qsplitter.html)、 [QTextEdit](qtextedit.html)和 [QToolTip](qtooltip.html)支持。如果沒有設置的話,默認為0。示例:QLineEdit { padding: 3px }參考 [margin](#margin-prop)、 [spacing](#spacing-prop)和盒狀模型。 | | padding-top | [Length](#length) | 這個部件的頂部填充距離。 | | padding-right | [Length](#length) | 這個部件的右側填充距離。 | | padding-bottom | [Length](#length) | 這個部件的底部填充距離。 | | padding-left | [Length](#length) | 這個部件的左側填充距離。 | | paint-alternating-row-colors-for-empty-area | bool | [QTreeView](qtreeview.html)是否要為空白區域(沒有條目的區域)繪制交替行顏色 | | position | relative &#124;?absolute | 用 [left](#left-prop)、 [right](#right-prop)、 [top](#top-prop)和 [bottom](#bottom-prop)指定的偏移值是相對的還是絕對的坐標。如果沒有設置,則默認值是relative。 | | right | [Length](#length) | 如果 [position](#position-prop)(位置)是relative(相對的)(默認值),則將某個 [subcontrol](#subcontrols)(子控件)向左移動一定距離;在那種情況下,指定right:? x就等價于指定 [left](#left-prop) : - x。如果 [position](#position-prop)是absolute(絕對的),則right屬性指定的是這個子控件的右邊線相對于親代部件的右邊線的位置(參考 [subcontrol-origin](#subcontrol-origin-prop))。示例:QSpinBox::down-button { right: 2px }參考 [left](#left-prop)、 [top](#top-prop)和 [bottom](#bottom-prop)。 | | selection-background-color* | [Brush](#brush) | 選中的文字或條目的背景。所有支持QWidget::palette并且顯示選中文字的部件都支持這個屬性。如果沒有設置,則默認值是為調色板的Highlight角色設置的值。示例:QTextEdit { selection-background-color: darkblue }參考 [selection-color](#selection-color-prop)和 [background](#background-prop)。 | | selection-color* | [Brush](#brush) | 選中的文字或條目的前景。所有支持QWidget::palette并且顯示選中文字的部件都支持這個屬性。如果沒有設置,則默認值是為調色板的HighlightedText角色設置的值。示例:QTextEdit { selection-color: white }參考 [selection-background-color](#selection-background-color-prop)和 [color](#color-prop)。 | | show-decoration-selected* | [Boolean](#boolean) | 控制的是在一個 [QListView](qlistview.html)中的選中區域是要覆蓋整個行還是只覆蓋文字的區域。如果沒有設置,則默認值是由當前風格中的SH_ItemView_ShowDecorationSelected樣式提示確定的。示例:* { show-decoration-selected: 1 } | | spacing* | [Length](#length) | 這個部件內部的間隔(spacing)。這個屬性被 [QCheckBox](qcheckbox.html)、可選中的 [QGroupBox](qgroupbox.html)、 [QMenuBar](qmenubar.html)和 [QRadioButton](qradiobutton.html)支持。如果沒有指定,則默認值取決于部件本身及當前風格。示例:QMenuBar { spacing: 10 }參考 [padding](#padding-prop)和 [margin](#margin-prop)。 | | subcontrol-origin* | [Origin](#origin) | 這個 [subcontrol](#subcontrols)(子控件)在親代元素中的根源(origin)矩形。如果沒有指定,則默認值為padding。示例:QSpinBox::up-button {image: url(:/../img/spinup.png);subcontrol-origin: content;subcontrol-position: right top;}參考 [subcontrol-position](#subcontrol-position-prop)。 | | subcontrol-position* | [Alignment](#alignment) | 這個子控件( [subcontrol](#subcontrols))在由 [subcontrol-origin](#subcontrol-origin-prop)確定的根源矩形中的對齊方式。如果沒有設置的話,則默認值取決于子控件本身。示例:QSpinBox::down-button {image: url(:/../img/spindown.png);subcontrol-origin: padding;subcontrol-position: right bottom;}參考 [subcontrol-origin](#subcontrol-origin-prop)。 | | text-align | [Alignment](#alignment) | 文字和圖標在這個部件的內容中的對齊方式。如果沒有設置的話,則默認值取決于原生(native)風格。示例:QPushButton {text-align: left;}當前只有 [QPushButton](qpushbutton.html)和 [QProgressBar](qprogressbar.html)支持這個屬性。 | | text-decoration | none underline overline line-through | 附加的文字效果 | | top | [Length](#length) | 如果 [position](#position-prop)是relative(相對的)(默認值),則將一個 [subcontrol](#subcontrols)(子控件)向下移動指定距離。如果 [position](#position-prop)是absolute(絕對的),則top屬性指定的是這個子控件的頂部邊線相對于親代部件的頂部邊線的位置(參考 [subcontrol-origin](#subcontrol-origin-prop))。如果沒有設置的話,則默認值是0。示例:QSpinBox::up-button { top: 2px }參考 [left](#left-prop)、 [right](#right-prop)和 [bottom](#bottom-prop)。 | | width | [Length](#length) | 一個 [subcontrol](#subcontrols)(子控件)(或者在某些情況下會是部件)的寬度。如果沒有設置的話,則默認值取決于子控件/部件本身及當前的風格。警告:除非另外說明,否則這個屬性對于部件無效。如果妳想讓某個部件具有固定的寬度,則將 [min-width](#min-width-prop)和 [max-width](#max-width-prop)設置成相同的值。示例:QSpinBox::up-button { width: 12px }參考 [height](#height-prop)。 | [Icon](#icon) 。 注意,要想讓 [QDialogButtonBox](qdialogbuttonbox.html) 中的按鈕里出現圖標的話,妳需要將dialogbuttonbox-buttons-have-icons 屬性設置成true(真)。并且,要對圖標的尺寸進行自定義的話,則使用icon-size 屬性。 <colgroup><col width="329"> <col width="414"></colgroup> | 名字 | QStyle::StandardPixmap | | backward-icon | QStyle::SP_ArrowBack | | cd-icon | QStyle::SP_DriveCDIcon | | computer-icon | QStyle::SP_ComputerIcon | | desktop-icon | QStyle::SP_DesktopIcon | | dialog-apply-icon | QStyle::SP_DialogApplyButton | | dialog-cancel-icon | QStyle::SP_DialogCancelButton | | dialog-close-icon | QStyle::SP_DialogCloseButton | | dialog-discard-icon | QStyle::SP_DialogDiscardButton | | dialog-help-icon | QStyle::SP_DialogHelpButton | | dialog-no-icon | QStyle::SP_DialogNoButton | | dialog-ok-icon | QStyle::SP_DialogOkButton | | dialog-open-icon | QStyle::SP_DialogOpenButton | | dialog-reset-icon | QStyle::SP_DialogResetButton | | dialog-save-icon | QStyle::SP_DialogSaveButton | | dialog-yes-icon | QStyle::SP_DialogYesButton | | directory-closed-icon | QStyle::SP_DirClosedIcon | | directory-icon | QStyle::SP_DirIcon | | directory-link-icon | QStyle::SP_DirLinkIcon | | directory-open-icon | QStyle::SP_DirOpenIcon | | dockwidget-close-icon | QStyle::SP_DockWidgetCloseButton | | downarrow-icon | QStyle::SP_ArrowDown | | dvd-icon | QStyle::SP_DriveDVDIcon | | file-icon | QStyle::SP_FileIcon | | file-link-icon | QStyle::SP_FileLinkIcon | | filedialog-contentsview-icon | QStyle::SP_FileDialogContentsView | | filedialog-detailedview-icon | QStyle::SP_FileDialogDetailedView | | filedialog-end-icon | QStyle::SP_FileDialogEnd | | filedialog-infoview-icon | QStyle::SP_FileDialogInfoView | | filedialog-listview-icon | QStyle::SP_FileDialogListView | | filedialog-new-directory-icon | QStyle::SP_FileDialogNewFolder | | filedialog-parent-directory-icon | QStyle::SP_FileDialogToParent | | filedialog-start-icon | QStyle::SP_FileDialogStart | | floppy-icon | QStyle::SP_DriveFDIcon | | forward-icon | QStyle::SP_ArrowForward | | harddisk-icon | QStyle::SP_DriveHDIcon | | home-icon | QStyle::SP_DirHomeIcon | | leftarrow-icon | QStyle::SP_ArrowLeft | | messagebox-critical-icon | QStyle::SP_MessageBoxCritical | | messagebox-information-icon | QStyle::SP_MessageBoxInformation | | messagebox-question-icon | QStyle::SP_MessageBoxQuestion | | messagebox-warning-icon | QStyle::SP_MessageBoxWarning | | network-icon | QStyle::SP_DriveNetIcon | | rightarrow-icon | QStyle::SP_ArrowRight | | titlebar-contexthelp-icon | QStyle::SP_TitleBarContextHelpButton | | titlebar-maximize-icon | QStyle::SP_TitleBarMaxButton | | titlebar-menu-icon | QStyle::SP_TitleBarMenuButton | | titlebar-minimize-icon | QStyle::SP_TitleBarMinButton | | titlebar-normal-icon | QStyle::SP_TitleBarNormalButton | | titlebar-shade-icon | QStyle::SP_TitleBarShadeButton | | titlebar-unshade-icon | QStyle::SP_TitleBarUnshadeButton | | trash-icon | QStyle::SP_TrashIcon | | uparrow-icon | QStyle::SP_ArrowUp | <colgroup><col width="106"> <col width="199"> <col width="433"></colgroup> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <colgroup><col width="210"> <col width="533"></colgroup> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看