bool isOK;
QString text = QInputDialog::getText(NULL,
"Input Dialog",
"Please input your comment",
QLineEdit::Normal,
"your comment",
&isOK);
if(isOK) {
QMessageBox::information(NULL,
"Information",
"Your comment is: <b>" + text +
"</b>",
QMessageBox::Yes | QMessageBox::No,
QMessageBox::Yes);
}
static QString QInputDialog::getText ( QWidget * parent,
本文出自 “豆子空间” 博客,请务必保留此出处http://devbean.blog.51cto.com/448512/219338
4117



被折叠的 条评论
为什么被折叠?



