qt值qss(stylesheet)用法简介(二)
来源:互联网 发布:数据分析助力销售业绩 编辑:程序博客网 时间:2024/05/29 13:33
实际例程和素材
qcolor颜色名称:
qframe结构图:
例子一:
background-color: red;
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
QPushButton:pressed {
background-color: rgb(0, 224, 0);
border-style: inset;
}
QPushButton:hover {
background-color: rgb(0, 224, 240);
border-style: inset;
}
鼠标没有经过按钮时:
鼠标经过时:
伪目标:
Pseudo-StateDescription
:active 激活时
:adjoins-item This state is set when the ::branch of a QTreeView is adjacent to an item.
:alternate 多选择
:bottom 底部
:checked 选择状态
:closable 可关闭
:closed 关闭状态
:default 默认
:disabled 无效状态
:editable 可编辑的
:edit-focus The item has edit focus (See QStyle::State_HasEditFocus). This state is available only for Qt Extended applications.
:enabled The item is enabled.
:exclusive The item is part of an exclusive item group. For example, a menu item in a exclusiveQActionGroup.
:first The item is the first (in a list). For example, the first tab in a QTabBar.
:flat The item is flat. For example, a flat QPushButton.
:floatable The items can be floated. For example, the QDockWidget has theQDockWidget::DockWidgetFloatable feature turned on.
:focus The item has input focus.
:has-children The item has children. For example, an item in a QTreeView that has child items.
:has-siblings The item has siblings. For example, an item in a QTreeView that siblings.
:horizontal The item has horizontal orientation
:hover The mouse is hovering over the item.
:indeterminate The item has indeterminate state. For example, a QCheckBox or QRadioButton ispartially checked.
:last The item is the last (in a list). For example, the last tab in a QTabBar.
:left The item is positioned at the left. For example, a QTabBar that has its tabs positioned atthe left.
:maximized The item is maximized. For example, a maximized QMdiSubWindow.
:middle The item is in the middle (in a list). For example, a tab that is not in the beginning or theend in a QTabBar.
:minimized The item is minimized. For example, a minimized QMdiSubWindow.
:movable The item can be moved around. For example, the QDockWidget has theQDockWidget::DockWidgetMovable feature turned on.
:no-frame The item has no frame. For example, a frameless QSpinBox or QLineEdit.
:non-exclusive The item is part of a non-exclusive item group. For example, a menu item in a non-exclusive QActionGroup.
:off For items that can be toggled, this applies to items in the "off" state.
:on For items that can be toggled, this applies to widgets in the "on" state.
:only-one The item is the only one (in a list). For example, a lone tab in a QTabBar.
:open The item is in the open state. For example, an expanded item in a QTreeView, or aQComboBox or QPushButton with an open menu.
:next-selected The next item (in a list) is selected. For example, the selected tab of a QTabBar is next tothis item.
:pressed The item is being pressed using the mouse.
:previous-selected The previous item (in a list) is selected. For example, a tab in a QTabBar that is next tothe selected tab.
:read-only The item is marked read only or non-editable. For example, a read only QLineEdit or anon-editable QComboBox.
:right The item is positioned at the right. For example, a QTabBar that has its tabs positionedat the right.
:selected The item is selected. For example, the selected tab in a QTabBar or the selected item in aQMenu.
:top The item is positioned at the top. For example, a QTabBar that has its tabs positioned atthe top.
:unchecked The item is unchecked.
:vertical The item has vertical orientation.
:window The widget is a window (i.e top level widget)
- qt值qss(stylesheet)用法简介(二)
- qt值qss(stylesheet)用法简介(一)
- Qt 之 stylesheet 用法, QSS实例
- Qt 之 stylesheet 用法, QSS实例
- Qt 之 stylesheet 用法, QSS实例
- QT StyleSheet(3)--QSS示例
- QT StyleSheet --QSS示例
- Qt之StyleSheet用法
- QT StyleSheet(二)
- QT StyleSheet(二)
- QT - qss(二)组合框QComboBox的定制
- QT StyleSheet常见用法和样式
- qt stylesheet
- Qt stylesheet
- qt stylesheet
- Qt Stylesheet
- qt的qpushbutton的基本qss 用法
- Qt之QSS(QDarkStyleSheet)
- 关于Linux系统清理/tmp/文件夹,你可能想知道的
- C语言 实现获得文件大小,大于某个值,删除该文件
- 如何限制tempdb的数据库增长
- ITeye 2013年1月第1周重要新闻回顾
- 黑马程序员—集合
- qt值qss(stylesheet)用法简介(二)
- 应用程序无法正常启动0xc000007b解决方法
- SQLserver数据库优化
- ajax 实现文件上传下载的方法
- 如何在Eclipse中过滤版本控制文件.svn
- Android基础1: Xml文件解析
- T-SQL和PL/SQL表关联更新语句的区别
- Spring c3p0 配置
- LCD12864实现3D图形显示