QTileRules 类提供用于将像素图 (或图像) 分割成 9 图块的规则。 更多...
头: | #include <QTileRules> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
QTileRules (Qt::TileRule horizontalRule , Qt::TileRule verticalRule ) | |
QTileRules (Qt::TileRule rule = Qt::StretchTile) |
分割类似于 CSS3 边框图像 .
另请参阅 Qt::TileRule and QMargins .
Constructs a QTileRules with the given horizontalRule and verticalRule .
Constructs a QTileRules with the given rule used for both the horizontal rule and the vertical rule.