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

Decide on exception handling in Qt::endPropertyUpdateGroup()

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes