Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31864

qml (console) log doesn't get captured.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 14.0.2
    • Debugger
    • None
    • Linux/Wayland

    Description

      To run an application from QtCreator there is the option to do this either from a terminal, or without. This is a checkbox on the "Projects" tab, inside the "run" sub-tab.

      The output from QML is, unfortunately, only visible when using a terminal, the capturing on Linux of these lines does not work when the terminal option is not used.

      Specifically:
      have a simple standard C++ app that has a QML front-end.
      In the front-end have some code, for instance on mouse-press, that does a console.log().
      Make sure that the 'run in terminal' checkbox is turned off.

      What I expect to happen:
      the line gets logged in the "Application Output" area, prefixed with the text: "qml: ".

      What actually happens:
      the text is lost. It doesn't appear anywhere.

      Notice that qdebug and other stdout / stderr works just fine. Its JUST qml that is missing. It may simply be that the QML system stops its output due to something special that the creator runner does...

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            tomz Tom Zander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes