1 Star 0 Fork 0

freeyourmind/YoungerBlog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
为Qt设置深色主题 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
freeyourmind 提交于 2015-04-23 16:52 . team documet export
为Qt设置深色主题
===
来源:[QDarkStyleSheet](https://github.com/ColinDuquesnoy/QDarkStyleSheet)
安装
pip install qdarkstyle
使用
```python
import sys
import qdarkstyle
from PySide import QtGui
# create the application and the main window
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
# setup stylesheet
app.setStyleSheet(qdarkstyle.load_stylesheet())
# run
window.show()
app.exec_()
```
效果
[![alt text](https://github.com/ColinDuquesnoy/QDarkStyleSheet/raw/master/screenshots/QDarkStyle%20example%201.png "QDarkStyle example 1")](https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/screenshots/QDarkStyle%20example%201.png)
[![alt text](https://github.com/ColinDuquesnoy/QDarkStyleSheet/raw/master/screenshots/QDarkStyle%20example%202.png "QDarkStyle example 2")](https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/screenshots/QDarkStyle%20example%202.png)
[![alt text](https://github.com/ColinDuquesnoy/QDarkStyleSheet/raw/master/screenshots/01.png "Screenshot 01")](https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/screenshots/01.png)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/freeyourmind/YoungerBlog.git
git@gitee.com:freeyourmind/YoungerBlog.git
freeyourmind
YoungerBlog
YoungerBlog
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385