QTileRules Struct

QTileRules 类提供了用于绘制分割成九段的像素图或图像的规则。更多

Header: #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)

详细说明

Spliiting 类似于CSS3 边框图像

另请参阅 Qt::TileRuleQMargins

成员函数文档

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

构造一个 QTileRules,水平规则和垂直规则都使用给定的rule

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

使用给定的horizontalRuleverticalRule 构建一个 QTileRules。

© 2025 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.