expand_setting_card

Module Contents

ExpandButton

拓展按钮

SpaceWidget

Spacing widget

HeaderSettingCard

Header setting card

ExpandBorderWidget

Expand setting card border widget

ExpandSettingCard

手风琴设置卡

GroupSeparator

组分隔符

GroupWidget

ExpandGroupSettingCard

分组手风琴设置卡

SimpleExpandGroupSettingCard

Simple expand group setting card

class ExpandButton(parent=None)

Bases: PyQt5.QtWidgets.QAbstractButton

拓展按钮

isHover = False
isPressed = False
rotateAni
paintEvent(e)
enterEvent(e)
leaveEvent(e)
mousePressEvent(e)
mouseReleaseEvent(e)
setHover(isHover: bool)
setPressed(isPressed: bool)
setExpand(isExpand: bool)
getAngle()
setAngle(angle)
angle
class SpaceWidget(parent=None)

Bases: PyQt5.QtWidgets.QWidget

Spacing widget

class HeaderSettingCard(icon, title, content=None, parent=None)

Bases: qfluentwidgets.components.settings.setting_card.SettingCard

Header setting card

expandButton
eventFilter(obj, e)
addWidget(widget: PyQt5.QtWidgets.QWidget)

添加小部件到末尾

paintEvent(e)
class ExpandBorderWidget(parent=None)

Bases: PyQt5.QtWidgets.QWidget

Expand setting card border widget

eventFilter(obj, e)
paintEvent(e)
class ExpandSettingCard(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon, title: str, content: str = None, parent=None)

Bases: PyQt5.QtWidgets.QScrollArea

手风琴设置卡

isExpand = False
scrollWidget
view
card
scrollLayout
viewLayout
spaceWidget
borderWidget
expandAni
addWidget(widget: PyQt5.QtWidgets.QWidget)

添加小部件到末尾

wheelEvent(e)
setExpand(isExpand: bool)

设置卡片的展开状态

toggleExpand()

切换卡片的展开状态

resizeEvent(e)
setValue(value)

设置配置项的值

class GroupSeparator(parent=None)

Bases: PyQt5.QtWidgets.QWidget

组分隔符

paintEvent(e)
class GroupWidget(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon, title: str, content: str, widget: PyQt5.QtWidgets.QWidget, stretch=0, parent=None)

Bases: PyQt5.QtWidgets.QWidget

iconWidget
titleLabel
contentLabel
widget
hBoxLayout
vBoxLayout
setTitle(title: str)
setContent(content: str)
setIconSize(width: int, height: int)

set the icon fixed size

setIcon(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon)
class ExpandGroupSettingCard(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon, title: str, content: str = None, parent=None)

Bases: ExpandSettingCard

分组手风琴设置卡

widgets: List[PyQt5.QtWidgets.QWidget] = []
addGroupWidget(widget: PyQt5.QtWidgets.QWidget)

添加小部件到组中

addGroup(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon, title: str, content: str, widget: PyQt5.QtWidgets.QWidget, stretch=0) GroupWidget

add group

Parameters

icon: str | QIcon | FluentIconBase

the icon of group

title: str

the title of group

content: str

the description of group

widget: str

the widget of group

stretch: int

the stretch of widget

removeGroupWidget(widget: PyQt5.QtWidgets.QWidget)

remove a group from card

class SimpleExpandGroupSettingCard(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIcon, title: str, content: str = None, parent=None)

Bases: ExpandGroupSettingCard

Simple expand group setting card