setting_card¶
Module Contents¶
Icon widget |
|
设置卡基类 |
|
开关按钮设置卡 |
|
滑动条设置卡 |
|
按钮设置卡 |
|
主题色按钮设置卡 |
|
超链接设置卡 |
|
拾色按钮 |
|
颜色设置卡 |
|
下拉框设置卡 |
- class SettingIconWidget(parent=None)¶
Bases:
qfluentwidgets.components.widgets.icon_widget.IconWidgetIcon 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)¶
设置配置项的值