Well what i have now that is working....

Qt Code:
  1. QFile xmlfile("/home/development/ttm/moives/xml/strings.xml");
  2. if (xmlfile.open(QIODevice::ReadOnly)) {
  3. QXmlStreamReader xml(&xmlfile);
  4. while (!xml.atEnd()) {
  5. xml.readNext();
  6. if (xml.isStartElement() && xml.name() == "movie") {
  7. ui->debugMovie->setText(xml.readElementText());
  8.  
  9. }
  10. }
  11.  
  12. }else {
  13. ui->debugMovie->setText("Not Reading xmlFile");
  14. }
To copy to clipboard, switch view to plain text mode 

then to get the text and set the file name i use

Qt Code:
  1. QString movFiledb = ui->debugMovie->text();
To copy to clipboard, switch view to plain text mode 

then to set the phonon movie and stuff

Qt Code:
  1. QString vidpath = QApplication::applicationDirPath();
  2. vidpath = "/home/development/ttm/moives/";
  3. obj_mediaobject->enqueue(Phonon::MediaSource(vidpath + movFiledb));
To copy to clipboard, switch view to plain text mode 

then when i play the movie it takes the movie tag thats string is e32017e61f189944fe1bf703ebc14050.avi

now how would i be able to use the code i have but make a signal about to finish and then read the next movie tag from xml ?