PDA

View Full Version : Qml Intellisense



codeman
13th March 2014, 14:40
Hello Friends,

is it meanwhile possilble to make QtCreator be aware for code completition for dynamically generated qml objects through

Qt.createComponent(..)

How do you manage intelissense for dynamic object? Is there a workaround?


Yours,

wysota
13th March 2014, 14:52
Objects in JavaScript do not have a "type" thus you can assign objects with different APIs to the same variable. In a general case it is not possible to trace the current assignment in an IDE.

Consider the following:

var obj = Math.random() > 0.3 ? (Qt.createComponent(Math.random() > 0.5 ? "File1.qml" : "File2.qml")) : new Date()