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

QuickTestEvent::touchDevice returns invalid QTouchDevice* on second call to quick_test_main (quicktest.h)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.10.0
    • Fix Version/s: None
    • Component/s: Testing: QuickTest
    • Labels:
      None
    • Environment:
      Windows 7 x64

      Description

      I am combining our current test framework with the QtQuickTest framework by calling the generated QUICK_TEST_MAIN wrapper directly instead of running it as an isolated executable to be able to debug the C++ classes which interact with Qml. This works quite well most of the time, but now that we want to support touch devices and test touch with QtQuickTest, it only works for the first call to quick_test_main. All subsequent calls fail because apparently QWindowSystemInterface::unregisterTouchDevice was called for the static test device.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            martinc martinc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes