On this page

Utils::FancyTextEdit Class

class Utils::FancyTextEdit

The FancyTextEdit class is a line edit that can hold several lines. More...

Header: #include <fancytextedit.h>
Inherits: QWidget

Public Functions

void installEditFilter(QObject *filter)

Signals

void editingFinished()
void leftButtonClicked()
void returnPressed()
void rightButtonClicked()
void textChanged()
void validChanged(bool validState)

Detailed Description

It looks like a FancyLineEdit and offers the subset of its features that the find tool bar needs: an icon button on each side, a clear button, a validation function that colors the text, and a completer.

The field is as tall as a line edit as long as the text has one line, grows with the number of lines up to maximumVisibleLines(), and scrolls beyond that.

Return emits returnPressed(). Ctrl+Return (Cmd+Return on macOS) inserts a line break. Shift+Return is left to shortcuts or actions that the user of the widget has registered.

Member Function Documentation

[signal] void FancyTextEdit::editingFinished()

void FancyTextEdit::installEditFilter(QObject *filter)

Installs filter on the child widget that has the keyboard focus and receives the key events.

[signal] void FancyTextEdit::leftButtonClicked()

[signal] void FancyTextEdit::returnPressed()

[signal] void FancyTextEdit::rightButtonClicked()

[signal] void FancyTextEdit::textChanged()

[signal] void FancyTextEdit::validChanged(bool validState)

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.