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

warnings in offscreen plugin, inherited from QPlatformWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.10
    • QPA
    • None
    • 9279442fe (dev), aab6a4e9b (6.9)

    Description

      Unnecessary-noise warnings can make tests fail, and aren't of much use to users either. So maybe these can be changed to qCDebugs or something.

      For example QPlatformWindow::setKeyboardGrabEnabled() has qWarning("This plugin does not support grabbing the keyboard") and QQuickPopupWindowPrivate::setVisible() tries to grab the keyboard. (It even checks the return value to see if it succeeded or not!) So if a popup-related autotest is tested on the offscreen platform, this warning causes test failure for no good reason.

      In that sense, warnings are almost as bad as exceptions.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes