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