本页内容

QTileRules Struct

QTileRules 类提供了用于绘制被划分为九个区域的位图或图像的规则。更多内容...

头文件: #include <QTileRules>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets

公共函数

QTileRules(Qt::TileRule rule = Qt::StretchTile)
QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)

详细说明

拆分效果类似于CSS3 的 border-images。

另请参阅 Qt::TileRule 和QMargins 。

成员函数文档

QTileRules::QTileRules(Qt::TileRule rule = Qt::StretchTile)

根据给定的rule ,构建一个QTileRules,该规则同时适用于水平线和垂直线。

QTileRules::QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)

根据给定的horizontalRule 和verticalRule ,构建一个QTileRules对象。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.