setting_card

Module Contents

SettingIconWidget

Icon widget

SettingCard

设置卡基类

SwitchSettingCard

开关按钮设置卡

RangeSettingCard

滑动条设置卡

PushSettingCard

按钮设置卡

PrimaryPushSettingCard

主题色按钮设置卡

HyperlinkCard

超链接设置卡

ColorPickerButton

拾色按钮

ColorSettingCard

颜色设置卡

ComboBoxSettingCard

下拉框设置卡

class SettingIconWidget(parent=None)

Bases: qfluentwidgets.components.widgets.icon_widget.IconWidget

Icon widget

Constructors

  • IconWidget(parent: QWidget = None)

  • IconWidget(icon: QIcon | str | FluentIconBase, parent: QWidget = None)

paintEvent(e)
class SettingCard(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, parent=None)

Bases: PyQt5.QtWidgets.QFrame

设置卡基类

iconLabel
titleLabel
contentLabel
hBoxLayout
vBoxLayout
setTitle(title: str)

设置卡片的标题

setContent(content: str)

设置卡片的内容

setValue(value)

设置配置项的值

setIconSize(width: int, height: int)

set the icon fixed size

paintEvent(e)
class SwitchSettingCard(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, configItem: qfluentwidgets.common.config.ConfigItem = None, parent=None)

Bases: SettingCard

开关按钮设置卡

checkedChanged
configItem
switchButton
setValue(isChecked: bool)

设置配置项的值

setChecked(isChecked: bool)
isChecked()
class RangeSettingCard(configItem, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, parent=None)

Bases: SettingCard

滑动条设置卡

valueChanged
configItem
slider
valueLabel
setValue(value)

设置配置项的值

class PushSettingCard(text, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, parent=None)

Bases: SettingCard

按钮设置卡

clicked
button
class PrimaryPushSettingCard(text, icon, title, content=None, parent=None)

Bases: PushSettingCard

主题色按钮设置卡

class HyperlinkCard(url, text, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, parent=None)

Bases: SettingCard

超链接设置卡

linkButton
class ColorPickerButton(color: PyQt5.QtGui.QColor, title: str, parent=None, enableAlpha=False)

Bases: PyQt5.QtWidgets.QToolButton

拾色按钮

colorChanged
title
enableAlpha
setColor(color)

设置颜色

paintEvent(e)
class ColorSettingCard(configItem, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title: str, content: str = None, parent=None, enableAlpha=False)

Bases: SettingCard

颜色设置卡

colorChanged
configItem
colorPicker
setValue(color: PyQt5.QtGui.QColor)

设置配置项的值

class ComboBoxSettingCard(configItem: qfluentwidgets.common.config.OptionsConfigItem, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, title, content=None, texts=None, parent=None)

Bases: SettingCard

下拉框设置卡

configItem
comboBox
optionToText
setValue(value)

设置配置项的值