Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
#include <QtGui> #include <QtTest/QtTest> class TestGui: public QObject { Q_OBJECT private slots: void testGui(); }; void TestGui::testGui() { QLineEdit lineEdit; QTest::keyClicks(&lineEdit, "hello world"); QCOMPARE(lineEdit.text(), QString("hello world")); } QTEST_MAIN(TestGui) #include "testgui.moc"
Copyright © 2005 Trolltech | Trademarks | Qt 4.1.0 |