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

QDialog panic if window flag other than Qt::Dialog is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • 4.7.2
    • 4.7.1
    • None
    • None
    • wk46
    • 14ddf44ce2fdd7195741b9683226a3cd774e17e4

      In the QDialog constructor it's possible to give a parameter of type Qt::WindowFlags. However giving anything else besides Qt::Dialog will cause a window server panic 64 ("An attempt was made to set a transparency operation to a window that has not been enabled to be transparent").

      The documentation of the flag Qt::Dialog states that "This is the default type for QDialog". Thus the API very much looks like the flags can be changed and the Qt implementation can't assume that a QDialog will always have Qt::Dialog. In any case it must not crash.

      The attached application can be used to reproduce the panic.

        1. main.cpp
          0.2 kB
          Jussi Suistomaa
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jabarron Jason Barron
            suistoma Jussi Suistomaa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes