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. Can I use qDebug() from QML?

Can I use qDebug() from QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 4.1k Views 1 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.
  • V Offline
    V Offline
    Vadi2
    wrote on last edited by
    #1

    I love qDebug()'s ability to print the entire object - is it possible to use it, or a similar function from QML?

    KillerSmathK 1 Reply Last reply
    0
    • V Vadi2

      I love qDebug()'s ability to print the entire object - is it possible to use it, or a similar function from QML?

      KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by
      #2

      @Vadi2
      you can use console api
      https://doc.qt.io/qt-5/qtquick-debugging.html#console-api

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vadi2
        wrote on last edited by
        #3

        That's not what I mean - I want the ability to print the entire Qt object.

        KillerSmathK 1 Reply Last reply
        0
        • V Vadi2

          That's not what I mean - I want the ability to print the entire Qt object.

          KillerSmathK Offline
          KillerSmathK Offline
          KillerSmath
          wrote on last edited by
          #4

          @Vadi2
          I am not sure if qml has this feature by default, but take a look at this Stackoverflow post:
          https://stackoverflow.com/questions/20293838/qml-list-all-object-members-properties-in-console

          @Computer Science Student - Brazil
          Web Developer and Researcher
          “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

          1 Reply Last reply
          3

          • Login

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