Well what i have now that is working....
QFile xmlfile
("/home/development/ttm/moives/xml/strings.xml");
QXmlStreamReader xml(&xmlfile);
while (!xml.atEnd()) {
xml.readNext();
if (xml.isStartElement() && xml.name() == "movie") {
ui->debugMovie->setText(xml.readElementText());
}
}
}else {
ui->debugMovie->setText("Not Reading xmlFile");
}
QFile xmlfile("/home/development/ttm/moives/xml/strings.xml");
if (xmlfile.open(QIODevice::ReadOnly)) {
QXmlStreamReader xml(&xmlfile);
while (!xml.atEnd()) {
xml.readNext();
if (xml.isStartElement() && xml.name() == "movie") {
ui->debugMovie->setText(xml.readElementText());
}
}
}else {
ui->debugMovie->setText("Not Reading xmlFile");
}
To copy to clipboard, switch view to plain text mode
then to get the text and set the file name i use
QString movFiledb
= ui
->debugMovie
->text
();
QString movFiledb = ui->debugMovie->text();
To copy to clipboard, switch view to plain text mode
then to set the phonon movie and stuff
vidpath = "/home/development/ttm/moives/";
obj_mediaobject->enqueue(Phonon::MediaSource(vidpath + movFiledb));
QString vidpath = QApplication::applicationDirPath();
vidpath = "/home/development/ttm/moives/";
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 ?
Bookmarks