Solved Qt object in JavaScript manual or list of all methods. Where?
-
Hello all!
Does anyone know where to find full list of methods that available in Qt Object (Qt.someMethod()). I mean only about "Qt". Is there full list of this object? Or any manual within reference?
-
Not sure about a resource, but when I am trying to figure objects out I will sometimes try this:
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("QML Generic Tests") function printObject(obj, type=""){ for(var prop in obj){ if(type === "") console.log(prop) else{ //console.log(typeof obj[prop]) if(typeof obj[prop] === type){ console.log(prop) } } } } QtObject { id: testobj function test(){ } } Component.onCompleted: { var qobj = testobj printObject(qobj) printObject(qobj, "function") } }
-
@fcarney I mean list of methods in reference within description. This question about manuals, but not about how to print it in application.
-
-
@JKSH Thx.