Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 8.0.1
-
macOS 12.1, Apple Silicon, Qt 6.2.3, Apple clang version 13.0.0 (clang-1300.0.29.30)
Description
The following has no problem:
Window { Component.onCompleted: { let real1 = 5.7 if (real1 === 3.4) {} // OK let real2 = width if (real2 === 3.4) {} // OK } }
However replace Window with Rectangle and it does have a problem:
Rectangle { Component.onCompleted: { let real1 = 5.7 if (real1 === 3.4) {} // OK let real2 = width if (real2 === 3.4) {} // Warning M325 } }