Layouting::LineEdit Class
class Layouting::LineEditUtils::FancyLineEdit をラップし、レイアウトビルダーで使用できるようにします。詳細...
| Header: | #include <LineEdit> |
| Inherits: | Layouting::Widget |
パブリック関数
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
詳細な説明
オートコンプリート、右側のアイコンボタン、プレースホルダーテキスト、およびリターンキー押下シグナルをサポートしています。onReturnPressed() が接続されている場合、Return キーおよび Enter キーが入力として受け入れられます(それ以上は伝播されません)。
Layouting::CompletingTextEdit 、Layouting::TextEdit 、およびLayouting::Widgetも参照してください 。
メンバ関数のドキュメント
void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
func をFancyLineEdit::returnPressedシグナルに接続し、Return/Enterキーのイベントを受け入れるように設定することで、それらのイベントがそれ以上伝播しないようにします。guard が破棄されると、この接続は自動的に解除されます。
void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
func を FancyLineEdit::rightButtonClicked シグナルに接続します。guard が破棄されると、この接続は自動的に解除されます。
Copyright © The Qt Company Ltd. and other contributors. 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.