setting_card

Module Contents

SettingIconWidget

Icon widget

SettingCard

Setting card

SwitchSettingCard

Setting card with switch button

RangeSettingCard

Setting card with a slider

PushSettingCard

Setting card with a push button

PrimaryPushSettingCard

Push setting card with primary color

HyperlinkCard

Hyperlink card

ColorPickerButton

Color picker button

ColorSettingCard

Setting card with color picker

ComboBoxSettingCard

Setting card with a combo box

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

Setting card

setTitle(title: str)

set the title of card

setContent(content: str)

set the content of card

setValue(value)

set the value of config item

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

Setting card with switch button

checkedChanged
setValue(isChecked: bool)

set the value of config item

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

Bases: SettingCard

Setting card with a slider

valueChanged
setValue(value)

set the value of config item

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

Bases: SettingCard

Setting card with a push button

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

Bases: PushSettingCard

Push setting card with primary color

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

Bases: SettingCard

Hyperlink card

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

Bases: PyQt5.QtWidgets.QToolButton

Color picker button

colorChanged
setColor(color)

set 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

Setting card with color picker

colorChanged
setValue(color: PyQt5.QtGui.QColor)

set the value of config item

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

Setting card with a combo box

setValue(value)

set the value of config item