このページでは

QAbstractTextDocumentLayout::Selection Struct

struct QAbstractTextDocumentLayout::Selection

QAbstractTextDocumentLayout::Selection クラスは、選択のパラメータを定義する利便性向上のためのクラスです。詳細...

パブリック変数

QTextCursor cursor
QTextCharFormat format

詳細な説明

セレクションを使用すると、QAbstractTextDocumentLayout::draw() 関数を使用して QTextDocument のカスタムレイアウトを描画する際に、ハイライト表示すべきドキュメントの一部を指定できます。これは、cursor およびformat を使用して指定します。

QAbstractTextDocumentLayout およびPaintContextも参照してください 。

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

QTextCursor Selection::cursor

この変数には、選択範囲のカーソルが格納されます

デフォルト値はヌルカーソルです。

QTextCharFormat Selection::format

この変数には、選択項目の形式が格納されます

デフォルト値は `QTextFormat::InvalidFormat` です。

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