Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created January 24, 2018 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/2ffc52c98d8085ebc8f5eaba3db8a577 to your computer and use it in GitHub Desktop.
Save esmarr58/2ffc52c98d8085ebc8f5eaba3db8a577 to your computer and use it in GitHub Desktop.
void MainWindow::on_pushButton_clicked()
{
QString nombreArchivo = QFileDialog::getOpenFileName(this,"Selecciona un archivo",".mp3");
reproductor->setMedia(QUrl::fromLocalFile(nombreArchivo));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment