dialog to query a string variable, similar to QInputDialog
More...
#include <QTextInputDialog.h>
|
static QString | getText (QWidget *parent, const QString &title, const QString &label, QLineEdit::EchoMode mode=QLineEdit::Normal, const QString &text=QString(), bool *ok=0, Qt::WindowFlags flags=0, Qt::InputMethodHints iHints=Qt::ImhNone, QValidator *val=0) |
| get text More...
|
|
|
virtual void | done (int result) |
| dialog done
|
|
|
QLineEdit * | eText |
| text line edit
|
|
QLabel * | lText |
| text label
|
|
|
QString | labelText |
| text displayed to the user
|
|
QLineEdit::EchoMode | textEchoMode |
| text echo mode of the input line edit
|
|
QString | textValue |
| text entered by the user
|
|
but with ability to set a validator to the line edit
Definition at line 33 of file QTextInputDialog.h.
QTextInputDialog::QTextInputDialog |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
flags = 0 |
|
) |
| |
|
explicit |
QString QTextInputDialog::getText |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
label, |
|
|
QLineEdit::EchoMode |
mode = QLineEdit::Normal , |
|
|
const QString & |
text = QString() , |
|
|
bool * |
ok = 0 , |
|
|
Qt::WindowFlags |
flags = 0 , |
|
|
Qt::InputMethodHints |
iHints = Qt::ImhNone , |
|
|
QValidator * |
val = 0 |
|
) |
| |
|
static |
copy of QInputDialog::getText interface
- Parameters
-
parent | parent widget |
title | dialog window title |
label | label for text input |
mode | text input mode |
text | input text content |
ok | true if ok has been pressed, false if canceled |
flags | window flags |
iHints | input method hints |
val | validator |
- Returns
- entered text or empty string if canceled
Definition at line 60 of file QTextInputDialog.cpp.
References setLabelText(), setTextEchoMode(), setTextValue(), setValidator(), and textValue.
The documentation for this class was generated from the following files: