Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# Qt 3 Support Members for QInputDialog

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

- QInputDialog class reference

## Static Public Members

double | getDouble ( const QString & title, const QString & label, double value = 0, double min = -2147483647, double max = 2147483647, int decimals = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )
int | getInteger ( const QString & title, const QString & label, int value = 0, int min = -2147483647, int max = 2147483647, int step = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )
QString | getItem ( const QString & title, const QString & label, const QStringList & list, int current = 0, bool editable = true, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )
QString | getText ( const QString & title, const QString & label, QLineEdit::EchoMode echo = QLineEdit::Normal, const QString & text = QString(), bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )

- 1 static public member inherited from QWidget
- 13 static public members inherited from QPaintDevice

## Member Function Documentation

### double QInputDialog::getDouble ( const QString & title, const QString & label, double value = 0, double min = -2147483647, double max = 2147483647, int decimals = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )`[static]`

Call getDouble(parent, title, label, value, min, max, decimals, ok, flags).

The name parameter is ignored.

### int QInputDialog::getInteger ( const QString & title, const QString & label, int value = 0, int min = -2147483647, int max = 2147483647, int step = 1, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )`[static]`

Call getInteger(parent, title, label, value, min, max, step, ok, flags) instead.

The name parameter is ignored.

### QString QInputDialog::getItem ( const QString & title, const QString & label, const QStringList & list, int current = 0, bool editable = true, bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )`[static]`

Call getItem(parent, title, label, list, current, editable, ok, flags) instead.

The name parameter is ignored.

### QString QInputDialog::getText ( const QString & title, const QString & label, QLineEdit::EchoMode echo = QLineEdit::Normal, const QString & text = QString(), bool * ok = 0, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags flags = 0 )`[static]`

Call getText(parent, title, label, echo, text, ok, flags) instead.

The name parameter is ignored.