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

Crash in QProperty when dynamically changing bindings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 6.0.0 Alpha
    • Core: Object Model
    • None
    • 652062dde33ddb0ecaf4bb9f38055d8ab87c462b (qt/qtbase/dev)

      The change in https://codereview.qt-project.org/c/qt/qtbase/+/307778 attempts to port QAction to the new property system.

      QAction's text properties are interdependent - if one is empty, it falls back to another. Since users can change these properties, at any time. For instance, reset them to empty so that they fall back; this is probably mostly going to happen during UI design time, but could also happen when actions are configured dynamically.

      To model this behavior in the new system, the patch uses change and guard callbacks to dynamically create bindings.

      Running the tst_qaction_kernel test with this patch consistently crashes with heap corruption.

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

            fabiankosmale Fabian Kosmale
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes