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

Interaction between signals and in-place prefix increment operator causes crash

    XMLWordPrintable

Details

    • fff130ee6c4b4a06d0f90fa8ed8c3a6c4218035f

    Description

      Using V8 Javascript engine, using the prefix in-place addition operator in a signal handler in QML causes a crash:
      I.e. the following qml code causes a crash:
      onFooChanged: ++bar

      It seems to work fine in the onClicked handler, and bar++ works fine too.

      A simple example is attached.

      Attachments

        1. prefix_addition.qml
          0.7 kB
          Julian de Bhal (closed Nokia identity)
        For Gerrit Dashboard: QTBUG-21310
        # Subject Branch Project Status CR V

        Activity

          People

            raggi Roberto Raggi
            debhal Julian de Bhal (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes