Quoted
void Form1::playsound()
{
listView->setFocus();
if (listView->currentItem() == 0){
QMessageBox::information(this,
("Info"),
("List is Empty"));
}
else{
QSound::play("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
}
QSound soundend("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
if(soundend.isFinished()){
QSound::play("/firma2/jukebox/sounds/mario/bassdrum");
}
}
Quoted
void Form1::playsound()
{
listView->setFocus();
if (listView->currentItem() == 0){
QMessageBox::information(this,
("Info"),
("List is Empty"));
}
else{
QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
sound->play();
}
Quoted
QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
if(sound.isFinished()){
QSound* playnext = new QSound("/firma2/jukebox/sounds/mario/bassdrum");
playnext->play();
}
}
Quoted
Originally posted by marioo
Quoted
QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
if(sound->isFinished()){
QSound* playnext = new QSound("/firma2/jukebox/sounds/mario/bassdrum");
playnext->play();
}
Quoted
void Form1::playsound()
{
listView->setFocus();
if (listView->currentItem() == 0){
QMessageBox::information(this,
("Info"),
("List is Empty"));
}
else{
QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
sound->play();
}
QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + "");
if(sound->isFinished()){
QSound* playnext = new QSound("/firma2/jukebox/sounds/mario/bassdrum");
playnext->play();
}
}
Quoted
Originally posted by marioo
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13//... else{ QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + ""); sound->play(); } QSound* sound = new QSound("/firma2/jukebox/sounds/" + feld_le->text()+"/" + ( listView->currentItem() )->text( 0 ) + ""); if(sound->isFinished()){ QSound* playnext = new QSound("/firma2/jukebox/sounds/mario/bassdrum"); playnext->play(); }
Oh, and don't expect us to write your program for you, all we do is help and give hints.
Quoted
Originally posted by marioo
is that ok?
Quoted
Originally posted by marioo
how complicated is that?I dont have idea how to beginn...