Why doesn't Squish replay paintings properly in my painting application?

When a mouse press event is followed by mouse move events (while the button is still pressed), Squish compresses all these events into a single mouseDrag(objectOrName, x, y, dx, dy, modifierState, button).

Using a mouseDrag(objectOrName, x, y, dx, dy, modifierState, button) is much more robust in the face of changes in the AUT then recording the individual mouse events. However, during the replay of the mouseDrag(objectOrName, x, y, dx, dy, modifierState, button), there is only one mouse move event synthesized, starting from the point where the mouse button was pressed to the point where the mouse button was released.

To enable recording to work properly for applications that depend on all of the individual mouse move events being recorded individually, there's a way to disable the creation of the mouseDrag(objectOrName, x, y, dx, dy, modifierState, button) calls for a specific widget type. See setRecordMouseDrag(className, onOrOff) for further details.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.