在qt5.9.5 qtCreator上使用QInputdialog一直报警setGeometry : Unable to set geometry 120x30+1179+658
在qt forum上找到了答案。
设置qt Flag : MSWindowsFixedSizeDialogHint,可消除报警,如下:
QString text = QInputDialog::getText(this, tr("Setting"), tr("Please input password:"), QLineEdit::Password, "", &ok,Qt::MSWindowsFixedSizeDialogHint);