card_widget¶
Module Contents¶
Card widget |
|
Simple card widget |
|
Card widget with shadow effect |
|
Card separator |
|
Header card widget |
|
Group header card widget |
- class CardWidget(parent=None)¶
Bases:
qfluentwidgets.common.animation.BackgroundAnimationWidget,PyQt5.QtWidgets.QFrameCard widget
- clicked¶
- mouseReleaseEvent(e)¶
- setClickEnabled(isEnabled: bool)¶
- isClickEnabled()¶
- getBorderRadius()¶
- setBorderRadius(radius: int)¶
- paintEvent(e)¶
- borderRadius¶
- class SimpleCardWidget(parent=None)¶
Bases:
CardWidgetSimple card widget
- paintEvent(e)¶
- class ElevatedCardWidget(parent=None)¶
Bases:
SimpleCardWidgetCard widget with shadow effect
- shadowAni¶
- elevatedAni¶
- enterEvent(e)¶
- leaveEvent(e)¶
- mousePressEvent(e)¶
- class HeaderCardWidget(parent=None)¶
Bases:
SimpleCardWidgetHeader card widget
- headerView¶
- headerLabel¶
- separator¶
- view¶
- vBoxLayout¶
- headerLayout¶
- viewLayout¶
- getTitle()¶
- setTitle(title: str)¶
- title¶
- class CardGroupWidget(icon: str | qfluentwidgets.common.icon.FluentIconBase | PyQt5.QtGui.QIcon, title: str, content: str, parent=None)¶
Bases:
PyQt5.QtWidgets.QWidget- vBoxLayout¶
- hBoxLayout¶
- iconWidget¶
- titleLabel¶
- contentLabel¶
- textLayout¶
- separator¶
- title()¶
- setTitle(text: str)¶
- content()¶
- setContent(text: str)¶
- icon()¶
- setIcon(icon: str | qfluentwidgets.common.icon.FluentIconBase | PyQt5.QtGui.QIcon)¶
- setIconSize(size: PyQt5.QtCore.QSize)¶
- setSeparatorVisible(isVisible: bool)¶
- isSeparatorVisible()¶
- addWidget(widget: PyQt5.QtWidgets.QWidget, stretch=0)¶
- class GroupHeaderCardWidget(parent=None)¶
Bases:
HeaderCardWidgetGroup header card widget
- addGroup(icon: str | qfluentwidgets.common.icon.FluentIconBase | PyQt5.QtGui.QIcon, title: str, content: str, widget: PyQt5.QtWidgets.QWidget, stretch=0) CardGroupWidget¶
add widget to a new group
Parameters¶
- icon: str | QIcon | FluentIconBase
the icon to be drawn
- title: str
the title of card
- content: str
the content of card
- widget: QWidget
the widget to be added
- stretch: int
the layout stretch of widget
- groupCount()¶