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

Robot Arm: qmllint warnings

    XMLWordPrintable

Details

    • 0b7bdaf1e (dev), 727f569ec (dev), 346b5838c (dev), 6982bbc52 (dev), 7304b6b8c (dev), 0da5048dd (dev), 69bebb4a3 (6.10), 0b03a7e1e (6.10), 35fac492b (6.10), 90f4b0915 (6.10), c4a61a2ee (6.10), 8e1d2df1c (6.10)

    Description

      The Robot Arm application example prints quite some qmllint warnings:

      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/imports/RobotArm/Constants.qml:13: warning: Member "font" not found on type "QQmlApplication" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/imports/RobotArm/Constants.qml:14: warning: Member "font" not found on type "QQmlApplication" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/imports/RobotArm/Constants.qml:17: warning: Member "font" not found on type "QQmlApplication" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/imports/RobotArm/Constants.qml:18: warning: Member "font" not found on type "QQmlApplication" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/App.qml:5: warning: Warnings occurred while importing module "RobotArm": [import]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/App.qml:8: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/App.qml:9: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:117: warning: Implicitly defining "onClicked" as signal handler in Connections is deprecated. Create a function instead: "function onClicked() { ... }". [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:135: warning: Implicitly defining "onClicked" as signal handler in Connections is deprecated. Create a function instead: "function onClicked() { ... }". [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:153: warning: Implicitly defining "onClicked" as signal handler in Connections is deprecated. Create a function instead: "function onClicked() { ... }". [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:171: warning: Implicitly defining "onClicked" as signal handler in Connections is deprecated. Create a function instead: "function onClicked() { ... }". [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:378: warning: Property "z" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.z: 100" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:374: warning: Property "scale" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.scale: scale" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:377: warning: Property "y" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.y: 280" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:373: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:347: warning: Property "topPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.topPadding: 15" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:350: warning: Property "buttonRowWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.buttonRowWidth: width * 0.2" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:348: warning: Property "leftPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.leftPadding: 45" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:351: warning: Property "buttonMinWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.buttonMinWidth: 75" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:346: warning: Property "sliderWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.sliderWidth: width * 0.85" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:349: warning: Property "bottomPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.bottomPadding: 0" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:345: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:337: warning: Property "z" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.z: 150" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:333: warning: Property "scale" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.scale: scale" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:336: warning: Property "y" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.y: 250" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:332: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:316: warning: Property "anchors" is custom-parsed in PropertyChanges. You should phrase this binding as "slidersColumn.anchors: anchors" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:315: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:307: warning: Property "buttonRowWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.buttonRowWidth: width * 0.2" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:306: warning: Property "sliderWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.sliderWidth: width * 0.4" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:308: warning: Property "bottomPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.bottomPadding: 20" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:305: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:297: warning: Property "z" is custom-parsed in PropertyChanges. You should phrase this binding as "roboArm.z: -200" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:296: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:288: warning: Property "topPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.topPadding: 15" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:291: warning: Property "buttonRowWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.buttonRowWidth: width * 0.2" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:287: warning: Property "leftPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.leftPadding: 45" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:292: warning: Property "buttonMinWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.buttonMinWidth: 75" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:290: warning: Property "sliderWidth" is custom-parsed in PropertyChanges. You should phrase this binding as "root.sliderWidth: width * 0.4" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:289: warning: Property "bottomPadding" is custom-parsed in PropertyChanges. You should phrase this binding as "root.bottomPadding: 0" [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:286: warning: You should remove any bindings on the "target" property and avoid custom-parsed bindings in PropertyChanges. [Quick.property-changes-parsed]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:273: warning: Reading non-constant and non-notifiable property status. Binding might not update when the property changes. [stale-property-read]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:357: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/MainScreen.ui.qml:312: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/NodeIndicator.qml:35: warning: Invalid color "transparent". [Quick.color]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/NodeIndicator.qml:14: warning: Cannot assign binding of type QQuickItem to QQuick3DViewport [incompatible-type]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/NodeIndicator.qml:38: warning: Member "accentColor" not found on type "QQuick3DMaterial" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/NodeIndicator.qml:38: warning: Member "secondaryTextColor" not found on type "QQuick3DMaterial" [missing-property]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:43: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:57: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:66: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:86: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:113: warning: Unqualified access [unqualified]
      /Users/kkoehne/Qt/Examples/Qt-6.10.0/demos/robotarm/content/RoboticArm.ui.qml:133: warning: Unqualified access [unqualified]
      

      Attachments

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: