Run QtQuick tests from main.cpp
QML and Qt Quick
1
Posts
1
Posters
589
Views
1
Watching
-
wrote on 17 Dec 2013, 13:46 last edited by
how can I run tests for QtQuick-Applications in the main.cpp? The main.qml have a rectangle and inside some buttons. The test class MouseClick.qml implements the javascript test functions who should push the buttons.
@
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);QTestCase = QTestCase(MouseClick); //???? QtQuick2ApplicationViewer viewer; viewer.setMainQmlFile(QStringLiteral("qml/TestApp/main.qml")); viewer.showExpanded(); return app.exec();
}
@
1/1