Selection Struct

struct QAbstractTextDocumentLayout::Selection

QAbstractTextDocumentLayout::Selection クラスは、セレクションのパラメータを定義する便利なクラスです。詳細...

パブリック変数

QTextCursor cursor
QTextCharFormat format

詳細な説明

選択範囲は、QAbstractTextDocumentLayout::draw() 関数で QTextDocuments のカスタムレイアウトを描画する際に、ハイライトされるべきドキュメントの一部を指定するために使用することができます。これはcursorformat を使って指定します。

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

メンバ変数ドキュメント

QTextCursor Selection::cursor

この変数は選択範囲のカーソルを保持する。

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

QTextCharFormat Selection::format

この変数は選択範囲のフォーマットを保持する。

デフォルト値はQTextFormat::InvalidFormat

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