Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
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...