我使用类似的东西:
CreateChooseDir()
{
QString OpenedCreatedDirectory = QFileDialog::getExistingDirectory(this, tr("Choose Directory"),
"/home",
QFileDialog::DontResolveSymlinks | QFileDialog::DontUseNativeDialog);
ui.PathLineEdit -> setText(OpenedDirectory);
ui.PushButtonNext -> setEnable();
}
这里的问题是,如果用于创建或打开目录,我只想设置PushButtonNext
启用。QFileDialog
目前,PushButtonNext
仅在关闭FileDialog
. 所以我想尽可能使用发射信号。有什么建议么?