[Qt-interest] QTest and Drag and Drop

Alan Ezust alan.ezust at gmail.com
Thu Jul 9 02:43:36 CEST 2009


You might need a mouseMove inbetween?

Perhaps grouping the press, move and release together in a QTestEventList
might be appropriate...

http://doc.trolltech.com/4.4/qtesteventlist.html#details


On Thu, Jul 2, 2009 at 2:12 AM, Pierre-Julien Villoud <PVilloud at movea.com>wrote:

>  Hi everyone,
>
> I'm using QTest to automate my GUI testing and I'm trying to emulate the
> drag and drop on an item from one widget to another.
>
> So I do this :
>
> QTest::mousePress( Widget1, Qt::LeftButton);
>
> QTest::mouseRelease(Widget2, Qt::LeftButton);
>
> And it does not drag and drop my item... Anyone sees what's wrong?
>
> Thanks in advance
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090708/535035f2/attachment.html 


More information about the Qt-interest-old mailing list