PDA

View Full Version : QTreeWidget causes segmentation fault



ram136682
28th December 2008, 13:29
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";
QTreeWidget treeWidget; // <--
qDebug() << "Statement 2";


Phonon::createPath(mediaObject, audioOutput);
Phonon::MediaSource source("chacha.mp3");
mediaObject->setCurrentSource(source);
mediaObject->play();
}


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

jpn
28th December 2008, 20:03
Try asking on the Qt4 Maemo mailing list (https://garage.maemo.org/mailman/listinfo/qt4-devel).

ram136682
29th December 2008, 03:14
Thnak you

Regards
-Ram