1
我在Windows 10 該項目工程創建音頻播放器使用Qt 5.7,但是當我打開音頻文件交回這些錯誤無法打開的文件與QFileDialog(QT 5.7)
shell\comdlg32\fileopensave.cpp(14274)\comdlg32.dll!75622833: (caller: 7565211C) ReturnHr(1) tid(dec) 80004005 Not specified error.
CallContext:[\PickerModalLoop]
shell\osshell\lmui\ntshrui\dll\shrengine.cpp(1473)\ntshrui.dll!665E3BE2: (caller: 665DF284) ReturnHr(1) tid(1a14) 80004005 Not specified error.
這是功能
void AudioPlayer::loadClicked()
{
QString filename = QFileDialog::getOpenFileName(this, tr("Select an audio file"), "" ,tr("File Mp3 (*.mp3)"));
int volume = ui->horizontalSliderVolume->value();
if(!filename.isEmpty())
{
player.setMedia(QUrl::fromLocalFile(filename));
player.setVolume(volume);
}
}
爲什麼?我該如何解決?
@Andrien Levarat謝謝 – Rik99