Results 1 to 20 of 22

Thread: Segmentation fault while creating Object for QApplication

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Dec 2008
    Location
    France
    Posts
    93
    Thanked 23 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Segmentation fault while creating Object for QApplication

    Hi,

    If you program crash when you try to use QApplication, it can be because you don't have the appropriate lib in your target.

    Qt works with modules, GUI module and Core module are two of them.

    QCoreApplication is part of the Core module (you need the libQtCore.so in your target).
    QApplication is part of the GUI module ( you need the libQtGui.so in your target).
    Of course you can check for dependency with ldd command.

    QApplication is for app with GUI.
    QCoreApplication if for app without GUI.

    So, use the one that fit for your project.

  2. The following user says thank you to nix for this useful post:

    nrabara (25th August 2009)

Similar Threads

  1. Replies: 2
    Last Post: 16th June 2010, 23:58
  2. segmentation fault for no apparent reason
    By rishiraj in forum Newbie
    Replies: 1
    Last Post: 12th February 2009, 11:13
  3. segmentation fault
    By uchennaanyanwu in forum Newbie
    Replies: 3
    Last Post: 31st July 2008, 16:52
  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.