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

QDialog as a delegate woes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.5.3
    • Fix Version/s: 5.9.0 Beta 2
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Environment:
      All
    • Commits:
      8b1d9d308b1f31e1b9c817e0d91e14baa3b76d6b

      Description

      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().

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sgaist Samuel Gaist
              Reporter:
              fbolduc Francis Bolduc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes