expand_setting_card =================== .. py:module:: qfluentwidgets.components.settings.expand_setting_card Module Contents --------------- .. autoapisummary:: qfluentwidgets.components.settings.expand_setting_card.ExpandButton qfluentwidgets.components.settings.expand_setting_card.SpaceWidget qfluentwidgets.components.settings.expand_setting_card.HeaderSettingCard qfluentwidgets.components.settings.expand_setting_card.ExpandBorderWidget qfluentwidgets.components.settings.expand_setting_card.ExpandSettingCard qfluentwidgets.components.settings.expand_setting_card.GroupSeparator qfluentwidgets.components.settings.expand_setting_card.GroupWidget qfluentwidgets.components.settings.expand_setting_card.ExpandGroupSettingCard qfluentwidgets.components.settings.expand_setting_card.SimpleExpandGroupSettingCard .. py:class:: ExpandButton(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QAbstractButton` Expand button .. py:attribute:: isHover :value: False .. py:attribute:: isPressed :value: False .. py:attribute:: rotateAni .. py:method:: paintEvent(e) .. py:method:: enterEvent(e) .. py:method:: leaveEvent(e) .. py:method:: mousePressEvent(e) .. py:method:: mouseReleaseEvent(e) .. py:method:: setHover(isHover: bool) .. py:method:: setPressed(isPressed: bool) .. py:method:: setExpand(isExpand: bool) .. py:method:: getAngle() .. py:method:: setAngle(angle) .. py:attribute:: angle .. py:class:: SpaceWidget(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` Spacing widget .. py:class:: HeaderSettingCard(icon, title, content=None, parent=None) Bases: :py:obj:`qfluentwidgets.components.settings.setting_card.SettingCard` Header setting card .. py:attribute:: expandButton .. py:method:: eventFilter(obj, e) .. py:method:: addWidget(widget: PyQt5.QtWidgets.QWidget) add widget to tail .. py:method:: paintEvent(e) .. py:class:: ExpandBorderWidget(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` Expand setting card border widget .. py:method:: eventFilter(obj, e) .. py:method:: paintEvent(e) .. py:class:: ExpandSettingCard(icon: Union[str, PyQt5.QtGui.QIcon, qfluentwidgets.common.icon.FluentIcon], title: str, content: str = None, parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QScrollArea` Expandable setting card .. py:attribute:: isExpand :value: False .. py:attribute:: scrollWidget .. py:attribute:: view .. py:attribute:: card .. py:attribute:: scrollLayout .. py:attribute:: viewLayout .. py:attribute:: spaceWidget .. py:attribute:: borderWidget .. py:attribute:: expandAni .. py:method:: addWidget(widget: PyQt5.QtWidgets.QWidget) add widget to tail .. py:method:: wheelEvent(e) .. py:method:: setExpand(isExpand: bool) set the expand status of card .. py:method:: toggleExpand() toggle expand status .. py:method:: resizeEvent(e) .. py:method:: setValue(value) set the value of config item .. py:class:: GroupSeparator(parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` group separator .. py:method:: paintEvent(e) .. py:class:: GroupWidget(icon: Union[str, PyQt5.QtGui.QIcon, qfluentwidgets.common.icon.FluentIcon], title: str, content: str, widget: PyQt5.QtWidgets.QWidget, stretch=0, parent=None) Bases: :py:obj:`PyQt5.QtWidgets.QWidget` .. py:attribute:: iconWidget .. py:attribute:: titleLabel .. py:attribute:: contentLabel .. py:attribute:: widget .. py:attribute:: hBoxLayout .. py:attribute:: vBoxLayout .. py:method:: setTitle(title: str) .. py:method:: setContent(content: str) .. py:method:: setIconSize(width: int, height: int) set the icon fixed size .. py:method:: setIcon(icon: Union[str, PyQt5.QtGui.QIcon, qfluentwidgets.common.icon.FluentIcon]) .. py:class:: ExpandGroupSettingCard(icon: Union[str, PyQt5.QtGui.QIcon, qfluentwidgets.common.icon.FluentIcon], title: str, content: str = None, parent=None) Bases: :py:obj:`ExpandSettingCard` Expand group setting card .. py:attribute:: widgets :type: List[PyQt5.QtWidgets.QWidget] :value: [] .. py:method:: addGroupWidget(widget: PyQt5.QtWidgets.QWidget) add widget to group .. py:method:: addGroup(icon: Union[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 .. py:method:: removeGroupWidget(widget: PyQt5.QtWidgets.QWidget) remove a group from card .. py:class:: SimpleExpandGroupSettingCard(icon: Union[str, PyQt5.QtGui.QIcon, qfluentwidgets.common.icon.FluentIcon], title: str, content: str = None, parent=None) Bases: :py:obj:`ExpandGroupSettingCard` Simple expand group setting card