TextSelection QML Type

テキストの連続した選択範囲とそのプロパティを表します。詳細...

Import Statement: import QtQuick
Since: Qt 6.7

プロパティ

詳細説明

TextEdit.cursorSelection は、現在選択されているテキストの範囲を表します (マウスのドラッグなどによる)。この API を使用して、選択されたテキストや、 および 形式のプロパティを照会したり変更したりすることができます。character block

注意: この API は技術プレビューであり、Qt の将来のバージョンで変更または削除される可能性があります。

TextEdit およびQTextCursorも参照して ください。

プロパティのドキュメント

alignment : enumeration

選択されたテキストを含むブロックの配置。

QTextBlockFormat::alignment()も参照して ください。


color : color

選択テキストの前景色。

QTextCharFormat::foreground()も参照して ください。


font : color

選択されたテキストのフォント。

QTextCharFormat::font()も参照 ください。


text : string

リッチ・テキスト・マークアップなしの選択テキスト。

このプロパティを設定すると、選択されたテキストが指定された文字列に置き換えられます。


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