Results 1 to 2 of 2

Thread: QTest

  1. #1

    Default QTest

    Hi all,

    I've modified the QTest tutorial 4 (simulating gui events) but it seem i have found a bug in the qtest functions...

    QTestEventList list1;
    list1.addKeyClick('a',Qt::ShiftModifier);
    QTest::addRow("char") << list1 << "A";

    The test fail and i don't understand why, the result is allways 'a' but with the ShiftModifier it should be 'A' ... no ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTest

    Quote Originally Posted by Mordicus
    it should be 'A' ... no ?
    It looks like you are right. It doesn't work with Qt::Key_A too.

Similar Threads

  1. QTest Unit Testing
    By bothapn in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2006, 22:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.