Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9265

Allow user program to redirect/hide QML warnings

    XMLWordPrintable

Details

    Description

      The different items & bindings use QDebug (specifically: QDeclarativeInfo, which wraps QDebug) to place runtime warnings. However, there is currently no way to redirect or silence these runtime warnings. I suggest providing an option to do this.

      Background: When working on QmlDesigner we experienced that there are lots of QtDeclarative runtime warnings that do not do any harm (program still works as expected), and are hard to fix. Furthermore, we want to separate between warnings that are in QtCreator itself, or warnings that are within the user .qml file we edit. I expect that other programs will want to redirect the output, also.

      The redirection should ideally be configurable per QDeclarativeEngine (something like QDeclarativeEngine::setWarningSink(QIODevice))

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            kkohne Kai Köhne
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes