На этой странице

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Обеспечивает обертку для объекта ` Utils::CompletingTextEdit ` для использования в конструкторе макетов. Подробнее...

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

Общедоступные функции

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)

Подробное описание

Обеспечивает автозаполнение, опциональный значок справа и настраиваемое поведение автозаполнения в дополнение к стандартным возможностям редактирования многострочного текста, предоставляемым TextEdit.

См. также Layouting::TextEdit, Layouting::LineEdit и Layouting::Widget.

Документация по функциям-членам

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

Подключает объект ` func ` к сигналу `CompletingTextEdit::returnPressed`. Связь автоматически удаляется при уничтожении объекта ` guard `.

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

Подключает объект ` func ` к сигналу `CompletingTextEdit::rightSideIconClicked`. Связь автоматически удаляется при уничтожении объекта ` guard `.

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

Подключает объект ` func ` к сигналу `textChanged`, передавая текущий обычный текст. Связь автоматически удаляется при уничтожении объекта ` 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.