Results 1 to 13 of 13

Thread: !!!A Strange Crash

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: !!!A Strange Crash

    it could be that due to configuration issues, your image is not found, and thus you get a null pixmap.
    Try this:
    Qt Code:
    1. XXXSplashScreen splash; //XXXSplashScreen encapsulate the QSplashScreen
    2. if(splsh.pixmap().isNull()){
    3. qDebug()<<"nuill pixmap";
    4. }
    5.  
    6. splash.show(); //the program crash right here
    7. app.setWindowIcon(QIcon());
    To copy to clipboard, switch view to plain text mode 

    and see if the debug message comes out, or you can set a break point on the debug message.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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

    hhf (10th March 2010)

Similar Threads

  1. Crash on removing a row
    By inktomi in forum Qt Programming
    Replies: 10
    Last Post: 17th June 2010, 12:59
  2. dll crash on Windows XP
    By radith in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2009, 02:28
  3. crash in emit()
    By mhoover in forum Qt Programming
    Replies: 9
    Last Post: 27th August 2009, 07:36
  4. Unexplained Crash
    By jbkc85 in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 19:06
  5. Crash in QTableWidget
    By ghorwin in forum Qt Programming
    Replies: 3
    Last Post: 29th October 2007, 16:57

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.