segmented_widget¶
Module Contents¶
Segmented item |
|
Pivot item |
|
Transparent background tool button |
|
Segmented widget |
|
Segmented tool widget |
|
Segmented toggle tool widget |
- class SegmentedItem(parent: PyQt5.QtWidgets.QWidget = None)¶
Bases:
qfluentwidgets.components.navigation.pivot.PivotItem
Segmented item
- class SegmentedToolItem(parent: PyQt5.QtWidgets.QWidget = None)¶
Bases:
qfluentwidgets.components.widgets.button.ToolButton
Pivot item
- itemClicked¶
- setSelected(isSelected: bool)¶
- class SegmentedToggleToolItem(parent: PyQt5.QtWidgets.QWidget = None)¶
Bases:
qfluentwidgets.components.widgets.button.TransparentToolButton
Transparent background tool button
Constructors¶
TransparentToolButton(parent: QWidget = None)
TransparentToolButton(icon: QIcon | str | FluentIconBase, parent: QWidget = None)
- itemClicked¶
- setSelected(isSelected: bool)¶
- class SegmentedWidget(parent=None)¶
Bases:
qfluentwidgets.components.navigation.pivot.Pivot
Segmented widget
- insertItem(index: int, routeKey: str, text: str, onClick=None, icon=None)¶
insert item
Parameters¶
- index: int
insert position
- routeKey: str
the unique name of item
- text: str
the text of navigation item
- onClick: callable
the slot connected to item clicked signal
- icon: str
the icon of navigation item
- paintEvent(e)¶
- class SegmentedToolWidget(parent=None)¶
Bases:
SegmentedWidget
Segmented tool widget
- addItem(routeKey: str, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, onClick=None)¶
add item
Parameters¶
- routeKey: str
the unique name of item
- icon: str | QIcon | FluentIconBase
the icon of navigation item
- onClick: callable
the slot connected to item clicked signal
- insertItem(index: int, routeKey: str, icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, onClick=None)¶
insert item
Parameters¶
- index: int
insert position
- routeKey: str
the unique name of item
- text: str
the text of navigation item
- onClick: callable
the slot connected to item clicked signal
- icon: str
the icon of navigation item
- class SegmentedToggleToolWidget(parent=None)¶
Bases:
SegmentedToolWidget
Segmented toggle tool widget
- paintEvent(e)¶