Results 1 to 9 of 9

Thread: QMessageBox crashes everytime inside the function?

  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default QMessageBox crashes everytime inside the function?

    Everytime the QMessageBox crashes and the whole application is being crashed. Even the simple declaration also.

    Qt Code:
    1. QMessageBox messbox;
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    Did you include the QMessageBox?
    Qt Code:
    1. #include <QMessageBox>
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QMessageBox crashes everytime inside the function?

    Can you show the actual code ? I'm sure its something else, QMessageBox is working fine for thousands of Qt users
    Anyway, you can build the debug version, use debugger and post backtrace after crash.

  4. #4
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    I have included the header file.

  5. #5
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    and it didn't help?

  6. #6
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    I have used almost every form of QMessageBox, still it crashes everytime. In release version it works fine, but not in debug mode.

  7. #7
    Join Date
    Apr 2011
    Posts
    195
    Thanks
    49
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    Download the newest libs from Qt.

  8. #8
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMessageBox crashes everytime inside the function?

    do you have other problems in debug mode? maybe you include the release lib?

  9. #9
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMessageBox crashes everytime inside the function?

    can you provide a minimal compilable program. may just with main() and messagebox inside it?

Similar Threads

  1. Replies: 6
    Last Post: 27th December 2010, 19:26
  2. Replies: 2
    Last Post: 30th September 2010, 09:57
  3. QMessageBox::information always crashes
    By Tito in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 11th September 2010, 16:51
  4. QTableWidgetItem setData crashes everytime.
    By Wing_Zero in forum Qt Programming
    Replies: 2
    Last Post: 16th August 2010, 19:59
  5. Mouse Freezes upon using QmessageBox::warning function.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 18th June 2008, 05:50

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.