Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt object in JavaScript manual or list of all methods. Where?
Forum Updated to NodeBB v4.3 + New Features

Qt object in JavaScript manual or list of all methods. Where?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 328 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #2

      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")
          }
      }
      

      C++ is a perfectly valid school of magic.

      B 1 Reply Last reply
      0
      • fcarneyF fcarney

        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")
            }
        }
        
        B Offline
        B Offline
        bogong
        wrote on last edited by bogong
        #3

        @fcarney I mean list of methods in reference within description. This question about manuals, but not about how to print it in application.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          https://doc.qt.io/qt-5/qml-qtqml-qt.html

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          B 1 Reply Last reply
          4
          • JKSHJ JKSH

            https://doc.qt.io/qt-5/qml-qtqml-qt.html

            B Offline
            B Offline
            bogong
            wrote on last edited by
            #5

            @JKSH Thx.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved