I was trying to load a wavefile for QSound from a qrc but of no luck. I tried loading the file from my drive then QSound made its sound. I am suspecting my QSound did not find the file in qrc. Is there any trick? I did all these in the snippet below
Qt Code:
  1. int main (int argc,char *argv[])
  2. {
  3.  
  4. QApplication app(argc,argv);
  5.  
  6. QPixmap pixmap(":/Menu/tool.gif"); //QPixmap foound this file in my qrc
  7. QSplashScreen splash(pixmap);
  8. splash.show();
  9. app.processEvents();
  10.  
  11. QSound::play(":/Sounds/voices/welcome.wav"); //I did not hear any on this one
  12.  
  13. MyWindow*mainWin = new MyWindow;
  14. mainWin->setMinimumSize(1024,740);
  15. mainWin->show();
  16. splash.finish(mainWin);
  17.  
  18. return app.exec();
  19. }
To copy to clipboard, switch view to plain text mode 
my qrc look like this
Qt Code:
  1. <qresource prefix="/Menu" >
  2. <file>tool.gif</file>
  3. </qresource>
  4.  
  5. <qresource prefix="/Sounds">
  6. <file>voices/welcome.wav</file>
  7. </qresource>
To copy to clipboard, switch view to plain text mode 

anything i missed?

baray98