QInputDialog::getInteger is obsolete, use getInt() instead.
// example
bool ok;
int i
= QInputDialog::getInt(this, tr
("QInputDialog::getInteger()"), tr
("Percentage:"),
25,
0,
100,
1,
&ok
);
if(!ok)
{
exit( 0 );
}
// example
bool ok;
int i = QInputDialog::getInt(this, tr("QInputDialog::getInteger()"), tr("Percentage:"), 25, 0, 100, 1, &ok);
if(!ok)
{
exit( 0 );
}
To copy to clipboard, switch view to plain text mode
If ok is nonnull *ok will be set to true if the user pressed OK and to false if the user pressed Cancel. The dialog's parent is parent.
Bookmarks