本页内容

QPageRanges::Range Struct

struct QPageRanges::Range

QPageRanges::Range 结构体包含一个范围的from 和to 端点。更多内容...

公共函数

bool contains(int pageNumber) const

公共变量

int from
int to

详细说明

另请参阅 QPageRanges::toRangeList()。

成员函数文档

[noexcept] bool Range::contains(int pageNumber) const

如果 `pageNumber ` 位于区间 `[from, to]` 内,则返回 `true `;否则返回 `false`。

成员变量文档

int Range::from

该变量存储了该区间的下端点

int Range::to

该变量存储该范围的上端点

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