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

Decide on exception handling in Qt::endPropertyUpdateGroup()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Core: Object Model
    • None

    Description

      Gerrit discussion: https://codereview.qt-project.org/c/qt/qtbase/+/458459/comments/fa6a4318_f96c2421

      While adding a RAII class around Qt::begin/endPropertyUpdateGroup() (QTBUG-110710), this author observed that Qt::endPropertyUpdateGroup() can throw exceptions (originally thrown from evaluating bindings or calling notifications), which causes a RAII'ed endPropertyUpdateGroup() to std::terminate() when called, as RAII classes are supposed to be, from stack unwinding.

      This makes the RAII wrapper kinda useless.

      This ticket is here to remember to decide what to do in this case and implement it accordingly.

      Remember to remove and/or amend the documentation of QScopedPropertyUpdateGroup accrodingly.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes