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

Add ignoreWarning that takes a RegExp

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0, 5.10
    • Fix Version/s: 5.12.0 Alpha
    • Component/s: Testing: QuickTest
    • Labels:
      None
    • Commits:
      f257be627cc9de4fdec430e2fe8f6ac3b6827070

      Description

      Like ignoreMessage(QtMsgType type, const QRegularExpression & messagePattern) but for QML.

      I would like to provide warning messages that are as specific as possible, but the problem with this is that it makes testing impossible, because if you print out QObject pointers (for example), memory addresses will be part of the output, which breaks the ignoreWarning() call. A RegExp would solve this issue.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                w00t Robin Burchell
                Reporter:
                mitch_curtis Mitch Curtis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes