이 페이지에서

Layouting::LineEdit Class

class Layouting::LineEdit

레이아웃 빌더에서 사용할 수 있도록 ` Utils::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.