Results 1 to 20 of 48

Thread: Program crashes (SIGSEGV)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #22
    Join Date
    May 2007
    Posts
    37
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Program crashes (SIGSEGV)

    I understand what you mean. But I have questions:

    Qt Code:
    1. #ifdef qApp
    2. #undef qApp
    3. #endif
    4. #define qApp static_cast<MyApp*>(QCoreApplication::instance())
    To copy to clipboard, switch view to plain text mode 
    1) Where do I have to put this part? Every file? Just in the class file? Somewhere else?

    2) With that code I have to include some classes I use (the part above my main function in main.cpp)?

    3) Do I have to instantiate the class in all files or just in the main function? Or does it work in another way?

    4) Can I put the delete lines (now at the bottom of my main function in main.cpp) in the destructor of the class?
    Last edited by Voldemort; 16th May 2007 at 21:07.
    Using Qt version 4.3.0

Similar Threads

  1. Porting my program to another windows machine !
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2007, 06:46
  2. QT Program debug,GDB on Linux
    By darpan in forum General Programming
    Replies: 1
    Last Post: 26th January 2007, 22:02
  3. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  4. Enter key causing program to exit
    By welby in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 16:11
  5. Reading from TCP Socket crashes program
    By OnionRingOfDoom in forum Qt Programming
    Replies: 26
    Last Post: 27th January 2006, 19:32

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.