[Qt-interest] using QTest::mousePress with QDesktopWidget

Ahmed Khaled ahmed_khaled_omer at yahoo.com
Thu Apr 16 21:16:27 CEST 2009


hello my name is ahmed khaled iam a biomedical engineer who is interested in Qt
i wandered to ask about how to access my windows XP SP2 desktop and exploring it with the mouse as moving clickind double clicking and soon.

i have tried to do this but i failed to apply the presssing clicking and double clicking actions while i succeeded to move the mouse using the QTestLib

here is my code:

QDesktopWidget *desk = new QDeskTopWidget;

desk->show();

QTest::mouseMove(desk, QPoint(25, 200));
QTest::mouseDClick(desk,Qt::LeftButton, 0, QPoint(25, 200)); // to open a given folder at this position of the desktop
//or iused this line QTest::mouseDClick(desk,Qt::LeftButton); // to open a given folder at this position of the desktop

the problem is that the mouse move while the double click action doesnt work

note: my programming environment is Qt4.4.3 & VS2008 over windows XP(2002) SP2

i wander that you can answer me as soon as possible and i want to know how i will now the answer to my question as iam not familiar with Qt request


thanks alot and Best regards
ahmed khaled


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090416/8986f8a5/attachment.html 


More information about the Qt-interest-old mailing list