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

QTest::mouseEvent doesn't warn about events that go outside the window at negative coordinates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4
    • Testing: qtestlib
    • None

    Description

      I noticed this while adding ignoreMessage calls for tst_QQuickListView::sectionsDragOutsideBounds. The code does this:

              if (windowSize.width() <= pos.x() || windowSize.height() <= pos.y()) {
                  qWarning("Mouse event at %d, %d occurs outside target window (%dx%d).",
                           pos.x(), pos.y(), windowSize.width(), windowSize.height());
              }
      

      Since e.g. 240 is not less than -500, the warning never gets hit, although it most probably should.

      Attachments

        Issue Links

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

          Activity

            People

              macadder Jason McDonald
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes