当前位置:网站首页>PyQt theme
PyQt theme
2022-06-26 02:17:00 【M_ qsqsqsq】
PyQt theme
1. Qt-Material
This is another stylesheet for PySide6, PySide2 and PyQt5, which looks like Material Design (close enough).
“ A copy Material The style of , Apply to PySide6, PySide2 as well as PyQt5”
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-WG78xmNm-1656173085181)(E:\Typora\images\image-20220625225344690.png)]
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-jN6NALvK-1656173085181)(E:\Typora\images\image-20220625225412945.png)]
Theme pack installation :pip install qt-material
Theme applications :
# Examples of use
import sys
# from PySide6 import QtWidgets
# from PySide2 import QtWidgets
from PyQt5 import QtWidgets
from qt_material import apply_stylesheet
# create the application and the main window
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QMainWindow()
# setup stylesheet
apply_stylesheet(app, theme='dark_teal.xml')
# run
window.show()
app.exec_()
theme = ['dark_amber.xml',
'dark_blue.xml',
'dark_cyan.xml',
'dark_lightgreen.xml',
'dark_pink.xml',
'dark_purple.xml',
'dark_red.xml',
'dark_teal.xml',
'dark_yellow.xml',
'light_amber.xml',
'light_blue.xml',
'light_cyan.xml',
'light_cyan_500.xml',
'light_lightgreen.xml',
'light_pink.xml',
'light_purple.xml',
'light_red.xml',
'light_teal.xml',
'light_yellow.xml']
2. QDarkStyleSheet
The most complete dark/light style sheet for Qt applications
“ The most complete dark / light colour Qt The theme ”
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-BAMDtJs6-1656173085181)(E:\Typora\images\image-20220625234446380.png)]
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-16oAYPll-1656173085181)(E:\Typora\images\image-20220625234541177.png)]
![(E:\Typora\images\image-20220625234459481.png)
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-yXRAE3lW-1656173085181)(C:\Users\sqqian\AppData\Roaming\Typora\typora-user-images\image-20220625234512282.png)]
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-pZgsT10E-1656173085182)(C:\Users\sqqian\AppData\Roaming\Typora\typora-user-images\image-20220625234516092.png)]
Download and install :pip install qdarkstyle
Theme applications :
import sys
import qdarkstyle
from qdarkstyle.dark.palette import DarkPalette
from qdarkstyle.light.palette import LightPalette
from PyQt5 import QtWidgets
# create the application and the main window
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QMainWindow()
# Set a dark theme
app.setStyleSheet(qdarkstyle.load_stylesheet(qt_api="pyqt5", palette=DarkPalette))
# Set light theme
# app.setStyleSheet(qdarkstyle.load_stylesheet(qt_api="pyqt5", palette=LightPalette))
# run
window.show()
app.exec_()
边栏推荐
- Prompt to update to the latest debug version during vscode debugging
- Fastadmin applet assistant is purchased, but the work order cannot be published in the problem work order
- 基於鄰接矩陣的廣度優先遍曆
- Cvpr2022 𞓜 future transformer with long-term action expectation
- Two indicators for determining the value of points to the business
- vs2015+PCL1.8.1+qt5.12-----(1)
- Back to top case
- Keda 2.7.1 brief analysis of scaledjob code
- Data analysis - data source, field type, data collection trap
- cv==biaoding---open----cv001
猜你喜欢

Cross server SQL connection configuration

@Query difficult and miscellaneous diseases

Ardiuno智能电蚊拍

SDRAM controller -- implementation of arbitration module

Visual studio 2013 redistributable is installed, but MySQL installation fails

ROS2+DDS+RTPS

NDK20b FFmpeg4.2.2 编译和集成

qtvtkvs2015测试代码

Shell learning record (IV)

初识Opengl
随机推荐
将weishi相机图片进行转换
Redis linked list
weishi相机显示
为 ServiceCollection 实现装饰器模式
MySQL必须掌握4种语言!
Exploring temporary information for dynamic network embedding
【js】免费api判断节假日、工作日和周六日
@Query difficult and miscellaneous diseases
Three factors affecting personal growth
shell学习记录(二)
Getting to know OpenGL
标定。。。
SDRAM控制器——仲裁模块的实现
Connecting the projector
WPF 窗口居中 & 变更触发机制
cv==biaoding---open----cv001
创建OpenGl窗口
Fastadmin applet assistant is purchased, but the work order cannot be published in the problem work order
shell学习记录(四)
【无标题】vsbiji esp....32