Na tej strani

Layouting::LineEdit Class

class Layouting::LineEdit

Zavija razred ` Utils::FancyLineEdit ` za uporabo v orodju za oblikovanje. Več...

Header: #include <LineEdit>
Inherits: Layouting::Widget

Javne funkcije

void onReturnPressed(QObject *guard, const std::function<void ()> &func)
void onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)

Podroben opis

Podpira samodejno dopolnjevanje, ikono na desni strani, besedilo za zadrževalnik in signal ob pritisku tipke Return. Ko je onReturnPressed() povezan, se tipki Return in Enter sprejmeta (ne posredujeta naprej).

Glejte tudi Layouting::CompletingTextEdit, Layouting::TextEdit in Layouting::Widget.

Dokumentacija o funkcijah članic

void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)

Poveže objekt ` func ` s signalom `FancyLineEdit::returnPressed` in omogoči sprejem dogodkov tipk Return/Enter, tako da se ti ne širijo naprej. Povezava se samodejno prekine, ko se objekt ` guard ` uniči.

void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)

Poveže objekt ` func ` s signalom `FancyLineEdit::rightButtonClicked`. Povezava se samodejno prekine, ko se objekt ` guard ` uniči.

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.