Component defined in an extended QML file not reporting with the name of the file for autopilot
Bug #1454394 reported by
Arthur Mello
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Component defined in an extended QML file, without adding any new property, will report to autopilot with the name of the base QML component instead of the same name of the QML file. When we define some new property the component will report as the file name, as expected.
This can be check with the sample code added here lp:~artmello/+junk/autopilot_issue. The "RedRect" component will be defined as so when investigating the code with autopilot3 -vis. But the "BlueRect" will be found as an usual Rectangle component.
We can always rely on the objectName, that will work on this case. But this behavior leads to unexpected issues when writing emulators.
To post a comment you must log in.
This isn't solvable within autopilot. The Qml processor contains an optimisation where, if you don't specialise your type with a property, it will use the parent type name. That's why, in your example, you get 'RedRect' (the name of the parent type) but 'Rectangle' for the BlueRect due to the property is enabled or not.