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

CLONE - QDialog as a delegate woes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.9.0 Beta 2
    • 4.6.2, 5.7.0
    • Widgets: Itemviews
    • None
    • All
    • 8b1d9d308b1f31e1b9c817e0d91e14baa3b76d6b

      Using QDialog as a delegate is problematic because QDialog::done(int) calls hide() before setResult(), therefore the result cannot be inspected by the Delegate's setModelData() method.

      QDialog::done(int) should invoke setResult() before calling hide().

        1. myexample.pro
          0.2 kB
        2. myexample.h
          2 kB
        3. myexample.cpp
          3 kB
        4. main.cpp
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sgaist Samuel Gaist
            hanzzz Hannes Mezger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes