ウィジェットツールの例

さまざまなコンプリート機能やツールを紹介するアプリケーション

Qt は、ウィジェットベースのアプリケーション向けに、オートコンプリート、元に戻す/やり直し、および正規表現の機能を提供しています。

Completer Example

Completer の例では、モデルから提供されたデータに基づいて、入力ウィジェットに文字列補完機能を提供する方法を示しています。

Custom Completer Example

「Custom Completer」の例では、モデルから提供されたデータに基づいて、入力ウィジェットに文字列補完機能を提供する方法を示しています。コンプリーターは、ユーザーが入力した最初の 3 文字に基づいて候補となる単語をポップアップ表示し、ユーザーが選択した単語は QTextCursor を使用して TextEdit に挿入されます。

QRegularExpression Example

QRegularExpression の例では、新しい正規表現を作成し、カスタムテキスト文字列でテストできる環境を提供することで、Qt の正規表現がテキストにどのように適用されるかを示しています。

Tree Model Completer Example

「Tree Model Completer」の例では、ピリオドを区切り文字として使用し、Child、GrandChild、GrandGrandChild レベルのオブジェクトにアクセスすることで、階層モデルに対する補完機能を提供する方法を示しています。

Undo Framework Example

この例では、Qt の undo フレームワークを使用して、元に戻す/やり直し機能を実装する方法を示しています。

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