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

the JavaScript switch statement embeded in QML can't work correctlly

    XMLWordPrintable

Details

    • 7c83628f5e594cc91f4e3bfde32d0062f85d5ec4

    Description

      only the first sentance in each case of Switch Statment can be exacuted.but if the Switch Statement can be ended with any other sentance, the Switch Statement can work correctlly. for example, you can simply uncomment the ";", the Switch Statment will work correctlly.

      for detailed information, please look into the exmaple code attached.

      Attachments

        1. sensortest.zip
          118 kB
        2. switch-problem.qml
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            raggi Roberto Raggi
            sinove Junhua Xu
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes