PySide6.QtWidgets.QTileRules

class QTileRules

The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.

Details

Spliiting is similar to CSS3 border-images .

See also

TileRuleQMargins

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

PySide6.QtWidgets.QTileRules.horizontal
PySide6.QtWidgets.QTileRules.vertical
__init__([rule=Qt.StretchTile])
Parameters:

ruleTileRule

Constructs a QTileRules with the given rule used for both the horizontal rule and the vertical rule.

__init__(horizontalRule, verticalRule)
Parameters:

Constructs a QTileRules with the given horizontalRule and verticalRule.