På den här sidan

Layouting::LineEdit Class

class Layouting::LineEdit

Kapslar in Utils::FancyLineEdit för användning i ett layoutverktyg. Mer...

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

Offentliga funktioner

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

Detaljerad beskrivning

Stöder automatisk komplettering, en ikonknapp på höger sida, en platshållartext och en signal vid tryck på returtangenten. När onReturnPressed() är ansluten accepteras retur- och Enter-tangenterna (vidarebefordras inte).

Se även Layouting::CompletingTextEdit, Layouting::TextEdit och Layouting::Widget.

Dokumentation för medlemsfunktioner

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

Kopplar samman ` func ` med signalen `FancyLineEdit::returnPressed` och aktiverar mottagning av händelser från Return-/Enter-tangenterna så att de inte vidarebefordras. Kopplingen tas bort automatiskt när ` guard ` förstörs.

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

Kopplar samman ` func ` med signalen `FancyLineEdit::rightButtonClicked`. Kopplingen tas bort automatiskt när ` guard ` förstörs.

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.