I am working on the source qt4-x11-4.4.0 ( https://garage.maemo.org/svn/qt4/trunk/qt4-x11-4.4.0 ).
My example code is as follows
MainWindow::MainWindow()
{
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObject = new Phonon::MediaObject(this);
metaInformationResolver = new Phonon::MediaObject(this);
mediaObject->setTickInterval(1000);
qDebug() << "Statement 1";
qDebug() << "Statement 2";
Phonon::createPath(mediaObject, audioOutput);
Phonon::MediaSource source("chacha.mp3");
mediaObject->setCurrentSource(source);
mediaObject->play();
}
MainWindow::MainWindow()
{
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
mediaObject = new Phonon::MediaObject(this);
metaInformationResolver = new Phonon::MediaObject(this);
mediaObject->setTickInterval(1000);
qDebug() << "Statement 1";
QTreeWidget treeWidget; // <--
qDebug() << "Statement 2";
Phonon::createPath(mediaObject, audioOutput);
Phonon::MediaSource source("chacha.mp3");
mediaObject->setCurrentSource(source);
mediaObject->play();
}
To copy to clipboard, switch view to plain text mode
when ever i execute this code, it gives segmentation fault. It is due to the QTreeWidget where i am able to get the statement1 in the logs but not the statement2.
The source base was built proper, but all the example programs which contains this QTreeWidget gives segmentation fault.
What might be the problem
Regards
-Ram
Bookmarks