Run QtQuick tests from main.cpp

  • 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;
    return app.exec();


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.