flip_view¶
Module Contents¶
Scroll button |
|
Flip view image delegate |
|
Flip view |
|
Horizontal flip view |
|
Vertical flip view |
- class ScrollButton(parent: PyQt5.QtWidgets.QWidget = None)¶
Bases:
qfluentwidgets.components.widgets.button.ToolButtonScroll button
- opacity()¶
- isTransparent()¶
- fadeIn()¶
- fadeOut()¶
- paintEvent(e)¶
- class FlipImageDelegate(parent=None)¶
Bases:
PyQt5.QtWidgets.QStyledItemDelegateFlip view image delegate
- borderRadius = 0¶
- itemSize(index: int)¶
- setBorderRadius(radius: int)¶
- paint(painter: PyQt5.QtGui.QPainter, option: PyQt5.QtWidgets.QStyleOptionViewItem, index: PyQt5.QtCore.QModelIndex)¶
- class FlipView(parent=None)¶
Bases:
PyQt5.QtWidgets.QListWidgetFlip view
Constructors¶
FlipView(parent: QWidget = None)
FlipView(orient: Qt.Orientation, parent: QWidget = None)
- currentIndexChanged¶
- orientation¶
- isHorizontal()¶
- setItemSize(size: PyQt5.QtCore.QSize)¶
set the size of item
- getItemSize()¶
get the size of item
- setBorderRadius(radius: int)¶
set the border radius of item
- getBorderRadius()¶
- scrollPrevious()¶
scroll to previous item
- scrollNext()¶
scroll to next item
- setCurrentIndex(index: int)¶
set current index
- scrollToIndex(index)¶
- currentIndex()¶
- image(index: int)¶
- addImage(image: PyQt5.QtGui.QImage | PyQt5.QtGui.QPixmap | str)¶
add image
- addImages(images: List[PyQt5.QtGui.QImage | PyQt5.QtGui.QPixmap | str], targetSize: PyQt5.QtCore.QSize = None)¶
add images
- setItemImage(index: int, image: PyQt5.QtGui.QImage | PyQt5.QtGui.QPixmap | str, targetSize: PyQt5.QtCore.QSize = None)¶
set the image of specified item
- itemImage(index: int, load=True) PyQt5.QtGui.QImage¶
get the image of specified item
Parameters¶
- index: int
the index of image
- load: bool
whether to load image data
- resizeEvent(e)¶
- enterEvent(e)¶
- leaveEvent(e)¶
- showEvent(e)¶
- wheelEvent(e: PyQt5.QtGui.QWheelEvent)¶
- getAspectRatioMode()¶
- setAspectRatioMode(mode: PyQt5.QtCore.Qt.AspectRatioMode)¶
- itemSize¶
- borderRadius¶
- aspectRatioMode¶