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

Windows 7/EN: Crash when doing a QMessageBox::question() call when app is run by Qt Creator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9.0 Beta 2
    • 5.7.0
    • QPA: Windows
    • None
    • Debug build in Qt Creator 4.0.2 using MSVC 2013, 64 bit.

      Windows 7 Enterprise N, Service Pack 1
      64 bit
      Processor i5-2500 @ 3.30 GHz
      Last updated 16/8/2016

      Calling code is:

              QString disconnect = (db==NULL) ? tr("Disconnect from server.") : tr("Disconnect from server %1/%2").arg(db->getServer()).arg(db->getUsername());
              QMessageBox::StandardButton b =
                      QMessageBox::question(this,
                                            disconnect,
                                            disconnect + tr("\n\nAre you sure you want to disconnect ?"),
                                            QMessageBox::Yes | QMessageBox::No,
                                            QMessageBox::No);
      

      and has worked previously.

      This problem does not occur in release builds.

        1. qtbug55336.zip
          1 kB
        2. modules_loaded.txt
          9 kB
        3. message_box_crash.zip
          4 kB
        4. Backtrace.txt
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            michaelatkinson Michael Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes