更新代码

This commit is contained in:
feiyangqingyun
2021-07-08 15:41:42 +08:00
parent c720191c44
commit 67611895c9
10 changed files with 56 additions and 32 deletions

View File

@@ -228,6 +228,10 @@ void QUIInputBox::setParameter(const QString &title, int type, int closeSec,
} else if (type == 1) {
this->txtValue->setVisible(false);
this->cboxValue->addItems(defaultValue.split("|"));
//回显字符串作为默认的下拉选项
if (!placeholderText.isEmpty()) {
this->cboxValue->setCurrentIndex(this->cboxValue->findText(placeholderText));
}
}
}