Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8.3, 6.9.1
Description
Comparing urls in QML when assigned to a property:
property url myUrl0: "http:///blabla" property url myUrl1: "http:///blabla"
like so:
root.myUrl0 === root.myUrl1
would evaluate as "true" (=> comparison by value?)
When a QUrl is passed from C++ to QML, it should be automatically converted into a url but those urls have very different behavior in comparisons. They look more like they are being compared by reference since almost any other comparison than "url_passed_from_cpp === url_passed_from_cpp" evaluates to false.
Steps to reproduce the issue:
- Run the attached project
- Click "push to emit"
- observe application output