Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23277

QMessageBox with QWindowsStyle() crashes when there is a blank line in the test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 4.8.1
    • 4.8.0
    • None
    • Mac OS X Lion

    Description

      Issue can be reproduced with this example in release mode, debug mode seems to work.

      #include <QMessageBox> 
      #include <QApplication> 
      #include <QWindowsStyle> 
      
      int main(int argc, char ** argv) 
      { 
      QApplication app(argc, argv); 
      app.setStyle(new QWindowsStyle); 
      
      QString myText; 
      const bool makeQtCrash = true; 
      if (makeQtCrash) myText = "Audio will be muted and\n\nall control points reset."; 
      else myText = "Audio will be muted and all control points reset."; 
      
      (void) QMessageBox::warning(NULL, "Scribble", myText, QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); 
      return 0; 
      } 
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            waterdomain Water Domain (Inactive)
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes