Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 4.7.0
-
None
Description
When a QML module is imported with a qualified name inside a file, when the file is reformatted (using QmlJSEditor > ReformatFile), any property declared with the type prefixed by the local namespace qualifier is broken. After the reformat the type of the property is removed leaving only the local namespace.
// example.qml import QtQuick.Controls 2.4 as QtControls // before reformatting property QtControls.ToolButton toolButton: QtControls.ToolButton { id: myTool } signal someSignal(QtControls.ToolButton control) // after reformatting property QtControls toolButton: QtControls.ToolButton { id: myTool } signal someSignal(QtControls control)
This is very subtle and hard to catch since its not marked as an error inside the editor. Any attempt to execute the program just end with the typical
/path/to/exe exited with code 255
EDIT: Added signal declaration to example.