以下成员源于类 QInputDialog are part of the Qt compatibility layer. We advise against using them in new code.
| 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) |
[static]
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)
调用 getDouble ( parent , title , label , value , min , max , decimals , ok , flags ).
The name 参数被忽略。
[static]
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)
Call getInteger( parent , title , label , value , min , max , step , ok , flags ) 代替。
The name 参数被忽略。
[static]
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)
调用 getItem ( parent , title , label , list , current , editable , ok , flags ) 代替。
The name 参数被忽略。
[static]
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)
调用 getText ( parent , title , label , echo , text , ok , flags ) 代替。
The name 参数被忽略。