Details
-
Type:
Bug
-
Status: Reported
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: Qt Creator 4.15.1
-
Fix Version/s: None
-
Component/s: Editors, Quick / QML Support
-
Labels:None
-
Platform/s:
Description
Naming your QML Component with the same name as one of imported and used component from other module triggers an error M129 in Qt Creator: Type cannot be instantiated recursively.
It works in runtime as expected: loading imported type instead of recursion. Thus, it is a false-positive on Qt Creator's side.
I changed module import and its uses to a qualified path import … as …, but it did not help: Qt Creator still sees it as recursive instantiation.
I must say, imports resolution is handled quite poorly in more than one aspect in Qt Creator. See QTCREATORBUG-25985 for another case.