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

CLONE - QDialog as a delegate woes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.6.2, 5.7.0
    • 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

        1. main.cpp
          0.3 kB
        2. myexample.cpp
          3 kB
        3. myexample.h
          2 kB
        4. myexample.pro
          0.2 kB

          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:
              hanzzz Hannes Mezger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes