以下成員源於類 QInputDialog 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
int
|
getInteger (QWidget * parent , const QString & title , const QString & label , int value = 0, int min = -2147483647, int max = 2147483647, int step = 1, bool * ok = 0, Qt::WindowFlags flags = 0) |
[static]
int
QInputDialog::
getInteger
(
QWidget
*
parent
, const
QString
&
title
, const
QString
&
label
,
int
value
= 0,
int
min
= -2147483647,
int
max
= 2147483647,
int
step
= 1,
bool
*
ok
= 0,
Qt::WindowFlags
flags
= 0)
使用 getInt () 代替。