Results 1 to 3 of 3

Thread: QGraphicsScene core dump?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    21
    Thanks
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QGraphicsScene core dump?

    Could someone please tell me what is wrong with this piece of code? I'm using Qt 4.5.3 on Unix/X11

    Qt Code:
    1. #include <QGraphicsView>
    2. #include <QGraphicsScene>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. s.addText("hello");
    7.  
    8. v.show();
    9.  
    10. return 0;
    11. }
    To copy to clipboard, switch view to plain text mode 

    It gives me a core dump right after I declare a QGraphicsScene with the following backtrace.

    #0 QGraphicsScenePrivate::init (this=0x5012e0) at ../../include/QtGui/../../src/gui/kernel/qapplication.h:102
    102 #ifndef QT_NO_STYLE_STYLESHEET
    (gdb) where
    #0 QGraphicsScenePrivate::init (this=0x5012e0) at ../../include/QtGui/../../src/gui/kernel/qapplication.h:102
    #1 0x0000002a95e22e95 in QGraphicsScene (this=0x7fbffff610, parent=0x0) at graphicsview/qgraphicsscene.h:276
    #2 0x000000000040082f in main () at main.cpp:9
    Last edited by cookie1909; 24th April 2009 at 20:23.

Similar Threads

  1. Replies: 0
    Last Post: 5th March 2009, 06:54
  2. in QGraphicsScene matrix of other QGraphicsScene
    By Noxxik in forum Qt Programming
    Replies: 5
    Last Post: 15th February 2009, 17:27
  3. core dump
    By DadaLee in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th September 2008, 10:05
  4. openGL in Qtopia core
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th July 2008, 11:26
  5. QGraphicsScene segmentation fault
    By maxpower in forum Qt Programming
    Replies: 2
    Last Post: 20th November 2006, 18:28

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.