Ezen az oldalon

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Utils::CompletingTextEdit -t burkolja be, hogy az elrendezés-készítőben használható legyen. Tovább...

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

Nyilvános függvények

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

Részletes leírás

Az TextEdit szabványos többsoros szövegszerkesztési képességei mellett automatikus kiegészítést, opcionális jobb oldali ikont és konfigurálható kiegészítési viselkedést biztosít.

Lásd még: Layouting::TextEdit, Layouting::LineEdit és Layouting::Widget.

Tagfüggvény-dokumentáció

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

Összekapcsolja a ` func `-et a `CompletingTextEdit::returnPressed` jelzéssel. A kapcsolat automatikusan megszűnik, amikor a ` guard ` megsemmisül.

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

Összekapcsolja a ` func `-et a `CompletingTextEdit::rightSideIconClicked` jelzéssel. A kapcsolat automatikusan megszűnik, amikor a ` guard ` megsemmisül.

void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)

Összekapcsolja a ` func ` objektumot a `textChanged` jelzéssel, átadva az aktuális egyszerű szöveget. A kapcsolat automatikusan megszűnik, amikor a ` guard ` megsemmisül.

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.