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. Hooking up qDebug() to console.log()?
QtWS25 Last Chance

Hooking up qDebug() to console.log()?

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

    When running an application from Qt Creator the console.log() window output is visible in the application pane, but the qDebug() output from the embedded C++ code does not show up there, as it would for QWidgets application.

    Is there an easy way to make that happen, ideally something that would not be intrusive in javascript/qml side of things.

    Grego - http://mpaja.com/

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      "This thread":http://developer.qt.nokia.com/forums/viewthread/893/P15 might help you. Or you can find similar topics as yours by clicking on the tags on the right.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grego
        wrote on last edited by
        #3

        Turns out I was mistaken, both qDebug() and console.log() work with Qt Creator, my problem was that it never got to qDebug() as I was bitten by
        https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6490

        Grego - http://mpaja.com/

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          Thanks for sharing!

          Could you please edit your first post and add [solved] ? Thanks

          Qt Certified Specialist
          www.edalsolutions.be

          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