このページでは

QTextLayout::FormatRange Struct

struct QTextLayout::FormatRange

QTextLayout::FormatRange 構造体は、テキストレイアウトのコンテンツ内の指定された領域に追加の書式情報を適用するために使用されます。詳細...

パブリック変数

QTextCharFormat format
int length
int start
bool operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)
bool operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

詳細な説明

QTextLayout::setFormats() およびQTextLayout::draw()も参照してください 。

メンバ変数のドキュメント

QTextCharFormat FormatRange::format

適用する形式を指定します。

int FormatRange::length

書式範囲がカバーする文字数を指定します。

int FormatRange::start

テキストレイアウト内のテキストにおける、書式設定範囲の開始位置を指定します。

関連する非メンバー

bool operator!=(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

lhs およびrhs 内のstart 、length 、format のいずれかのフィールドに、それぞれ異なる値が含まれている場合、true を返します。

bool operator==(const QTextLayout::FormatRange &lhs, const QTextLayout::FormatRange &rhs)

lhs およびrhs 内の各フィールド「start 」、「length 」、「format 」に、それぞれ同じ値が含まれている場合、true を返します。

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