QSS界面美化6
来源:互联网 发布:mac可以玩qq堂吗 编辑:程序博客网 时间:2024/05/17 23:00
.QWidget { background-color: beige;}QToolBar { background-color: beige;}QDialog, QFileDialog { background-color: beige;}QTabWidget::pane { /* The tab widget frame */ border-top: 2px solid #C2C7CB;}QTabWidget::tab-bar { left: 5px; /* move to the right by 5px */}QTabBar, QTabWidget { background-color: beige;}QTabBar::tab { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3); border: 1px solid darkkhaki; border-bottom-color: #C2C7CB; /* same as the pane color */ border-top-left-radius: 4px; border-top-right-radius: 4px; min-width: 8ex; padding: 2px; }QTabBar::tab:selected, QTabBar::tab:hover { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #fafafa, stop: 0.4 #f4f4f4, stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);}QTabBar::tab:selected { border-color: #9B9B9B; border-bottom-color: #C2C7CB; /* same as pane color */}QTabBar::tab:!selected { margin-top: 2px; /* make non-selected tabs look smaller */}/* Nice Windows-XP-style password character. */QLineEdit[echoMode="2"] { lineedit-password-character: 9679;}QHeaderView::section { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #616161, stop: 0.5 #505050, stop: 0.6 #434343, stop:1 #656565); color: white; padding-left: 4px; border: 1px solid #6c6c6c; } QHeaderView::section:checked { background-color: red; }/* We provide a min-width and min-height for push buttons so that they look elegant regardless of the width of the text. */QPushButton { background-color: palegoldenrod; border-width: 2px; border-color: darkkhaki; border-style: solid; border-radius: 5; padding: 3px; min-width: 9ex; min-height: 2.5ex;}QPushButton:hover { background-color: khaki;}/* Increase the padding, so the text is shifted when the button is pressed. */QPushButton:pressed { padding-left: 5px; padding-top: 5px; background-color: #d0d67c;}QLabel, QAbstractButton { font: bold;}/* Mark mandatory fields with a brownish color. */.mandatory { color: brown;}/* Bold text on status bar looks awful. */QStatusBar QLabel { font: normal;}QStatusBar::item { border-width: 1; border-color: darkkhaki; border-style: solid; border-radius: 2;}QStackedWidget, QComboBox, QLineEdit, QSpinBox, QTextEdit, QListView, QWebView, QTreeView, QHeaderView { background-color: cornsilk; selection-color: #0a214c; selection-background-color: #C19A6B;}QListView { show-decoration-selected: 1;}QListView::item:hover { background-color: wheat;}/* We reserve 1 pixel space in padding. When we get the focus, we kill the padding and enlarge the border. This makes the items glow. */QLineEdit, QFrame { border-width: 1px; padding: 1px; border-style: solid; border-color: darkkhaki; border-radius: 5px;}/* As mentioned above, eliminate the padding and increase the border. */QLineEdit:focus, QFrame:focus { border-width: 3px; padding: 0px;}/* A QLabel is a QFrame */QLabel { border: none; padding: 0; background: none;}/* A QToolTip is a QLabel */QToolTip { border: 2px solid darkkhaki; padding: 5px; border-radius: 3px; opacity: 200;}/* Nice to have the background color change when hovered. */QRadioButton:hover, QCheckBox:hover { background-color: wheat;}/* Force the dialog's buttons to follow the Windows guidelines. */QDialogButtonBox { button-layout: 0;}
阅读全文
0 0
- QSS界面美化6
- Qt界面美化 QSS
- Qt界面美化 QSS
- QSS界面美化5
- QSS界面美化7
- Qt界面美化之qss应用
- 《Qt》part 6 QSS Qt样式表——界面美化1
- QSS 美化日历
- qss 美化groupbox
- QSlider的qss美化
- QSS美化之QGroupBox
- QSS美化之QPushButton
- QSS风格QTabWidget美化
- 《Qt》part 7 QSS参考样式表——界面美化2
- 《Qt》part 8 QSS+按键菜单——界面美化3
- Qt Creator中使用qss对界面美化没有作用(效果)的问题
- qss界面制作
- 界面美化
- 动态规划-279. Perfect Squares
- poj2236 Wireless Network
- 1049. 数列的片段和(20)
- 沿着循环路线有N个加油站,其中i站的天然气量是[i]。你有一辆带有无限气罐的汽车,并且它的费用是从i站到我的下一站(i + 1).如果您可以绕电路行驶一次,则返回起始站索引
- C++——USACO Section 3.2 题解
- QSS界面美化6
- enum
- QSS界面美化7
- 获取数据自动插入列
- 《Python学习手册》学习笔记(12)之第12章if测试和语法规则(关键词:编程语言/Python/if)
- HDU3308线段树区间合并
- put()方法和write()方法
- HDU 5954 Do not pour out(二分+积分)
- bzoj 4415: [Shoi2013]发牌