fast::InputTextWidget class

A input text widget.

Base classes

class Widget
Abstract base class of widgets.

Constructors, destructors, conversion operators

InputTextWidget(const std::string& title = "", const std::string& text = "", bool singleLine = true, std::function<void(std::string)> callback = {}, QWidget* parent = nullptr)
Create an input text widget.

Public functions

void setText(const std::string& text)
Set text.
auto getText() -> std::string
Get current text.
void setCallbackClass(InputTextWidgetCallback* callback)

Signals

void updateTextSignal(const QString& text)

Function documentation

fast::InputTextWidget::InputTextWidget(const std::string& title = "", const std::string& text = "", bool singleLine = true, std::function<void(std::string)> callback = {}, QWidget* parent = nullptr)

Create an input text widget.

Parameters
title Title of input text widget (can contain HTML)
text Initial text of input text widget
singleLine Whether to use a single line input text widget or a multi-line widget
callback Callback function for when text is changed
parent

void fast::InputTextWidget::setText(const std::string& text)

Set text.

Parameters
text

std::string fast::InputTextWidget::getText()

Get current text.

Returns text