Results 1 to 3 of 3

Thread: QTreeWidget causes segmentation fault

  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default QTreeWidget causes segmentation fault

    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

    Qt Code:
    1. MainWindow::MainWindow()
    2. {
    3. audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
    4. mediaObject = new Phonon::MediaObject(this);
    5. metaInformationResolver = new Phonon::MediaObject(this);
    6.  
    7. mediaObject->setTickInterval(1000);
    8.  
    9. qDebug() << "Statement 1";
    10. QTreeWidget treeWidget; // <--
    11. qDebug() << "Statement 2";
    12.  
    13.  
    14. Phonon::createPath(mediaObject, audioOutput);
    15. Phonon::MediaSource source("chacha.mp3");
    16. mediaObject->setCurrentSource(source);
    17. mediaObject->play();
    18. }
    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
    Last edited by jpn; 28th December 2008 at 13:39. Reason: missing [code] tags

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QTreeWidget causes segmentation fault

    Try asking on the Qt4 Maemo mailing list.
    J-P Nurmi

  3. #3
    Join Date
    Aug 2008
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: QTreeWidget causes segmentation fault

    Thnak you

    Regards
    -Ram

Similar Threads

  1. segmentation fault
    By uchennaanyanwu in forum Newbie
    Replies: 3
    Last Post: 31st July 2008, 16:52
  2. QTreeWidgetItem - segmentation fault
    By szczav in forum Qt Programming
    Replies: 1
    Last Post: 4th June 2007, 22:54
  3. Process aborted. Segmentation fault
    By Pragya in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2007, 08:12
  4. Segmentation fault running any QT4 executables
    By jellis in forum Installation and Deployment
    Replies: 7
    Last Post: 19th May 2007, 16:35
  5. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 16:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.