Results 1 to 11 of 11

Thread: QMessageBox ( Core Dumped )

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2006
    Posts
    42
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default QMessageBox ( Core Dumped )

    Staff, the QMessageBox below functions normal. More when I pressed the Esc keyboard key, occurs Core dumped in the App.

    % Segmentation fault (core dumped)

    Qt Code:
    1. QMessageBox mb("App", "Hello Message ",
    2. QMessageBox::NoIcon,
    3. QMessageBox::Yes | QMessageBox::Default,
    4. QMessageBox::Cancel, QMessageBox::Escape );
    5.  
    6. mb.setButtonText( QMessageBox::Yes, "Ok" );
    7. mb.setButtonText( QMessageBox::Cancel, "Cancel" );
    8.  
    9. QPixmap exportSuccess( QPixmap::fromMimeSource( "message.png" ) );
    10. mb.setIconPixmap(exportSuccess);
    11.  
    12. mb.exec();
    To copy to clipboard, switch view to plain text mode 

    Cris
    Last edited by wysota; 28th January 2007 at 09:26. Reason: missing [code] tags

Similar Threads

  1. QLineEdit Segmentation fault (core dumped)
    By cristiano in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2006, 05:18
  2. customize the Icon QMessageBox
    By QiT in forum Newbie
    Replies: 1
    Last Post: 26th August 2006, 10:40
  3. Problem of Core Dropped!
    By Stephano in forum General Programming
    Replies: 1
    Last Post: 10th May 2006, 15:59

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.