Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Run QtQuick tests from main.cpp
Forum Updated to NodeBB v4.3 + New Features

Run QtQuick tests from main.cpp

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 589 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LongJohn
    wrote on 17 Dec 2013, 13:46 last edited by
    #1

    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 Reply Last reply
    0

    1/1

    17 Dec 2013, 13:46

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved