Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22731

QML merges all parameters from a JS function in one when saving

    XMLWordPrintable

Details

    • Linux/Other display system

    Description

      QML rewrites this code:

      function textValueToBackEnd(fieldName, value)

      { Supplier.SupplierType.textValueToBackEnd(fieldName, value) }

      TO

      function textValueToBackEnd(fieldNamevalue) { Supplier.SupplierType.textValueToBackEnd(fieldName, value) }

      when savingĀ  the changes.
      Workaround: In options > Qt Quick > Uncheck "Enable auto format on file save"

      I've been using 5.12.1 without problems but I'm facing this issue after updating last week.
      I reinstalled Qt 5.12.4 and also Qt 5.13 but qml still rewrites the parameters of my JS functions.

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            renti Antonio Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes