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

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes