Doc: Fix QTest::createTouchDevice docs

After the introduction of QInputDevice class the returned
QPointingDevice object from QTest::createTouchDevice()
call is no longer automatically deleted when the
QCoreApplication is deleted. Moreover, this function does
not really go thorough qpa but simply registers the device with
QWindowSystemInterface::registerInputDevice() (which is
actually also used from qpa plugins when new device is plugged)

Pick-to: 6.6 6.5
Change-Id: I3a0400288d76b7c95659d6b6ea260eff3233ebf1
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
bb10
Michal Klocek 2023-10-27 21:26:25 +02:00
parent 38ce08aa8e
commit 567e9b2026
1 changed files with 4 additions and 4 deletions

View File

@ -1635,10 +1635,10 @@
Creates a dummy touch device of type \a devType with capabilities \a caps for
simulation of touch events.
The touch device will be registered with the QPA window system interface,
and deleted automatically when the QCoreApplication is deleted. So you
should typically use createTouchDevice() to initialize a QPointingDevice
member variable in your test case class, and use the same instance for all tests.
The touch device will be registered with the Qt window system interface.
You should typically use createTouchDevice() to initialize a QPointingDevice
member variable in your test case class, use the same instance for all tests and
delete it when no longer needed.
\sa QTest::QTouchEventSequence, touchEvent()
*/