Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118323 qmllint: produce warnings for string to valuetype conversions
  3. QTBUG-118547

qmllint: produce warnings for string to valuetype conversions in assignments

XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • QML: Tooling
    • None

      We currently warn for string to valuetype assignment in bindings, but not in imperative assignments like:

      import QtQuick
      
      Item {
          property vector2d myVector: "1.2,1.3" // warns
      
          function f() {
              myVector = "5.6,7.8" // does not warn yet
          }
      
          Component.onCompleted: f()
      }
      
      

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

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes