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. Running QtQuickTest in Qt Quick 1.0 mode?

Running QtQuickTest in Qt Quick 1.0 mode?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.1k 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.
  • C Offline
    C Offline
    commodore_c64
    wrote on last edited by
    #1

    The documentation indicates that one can run a QtQuickTest in QtQuick 1.0 mode by passing the '-qtquick1' option. However, that doesn't seem to be supported:

    @$ ../QmlTestRunner/QmlTestRunner -help
    Usage: ../QmlTestRunner/QmlTestRunner [options] [testfunction[:testdata]]...
    By default, all testfunctions will be run.
    ...
    ...
    QmlTest options:
    -import dir : Specify an import directory.
    -input dir/file : Specify the root directory for test cases or a single test case file.
    -qtquick1 : Run with QtQuick 1 rather than QtQuick 2.
    -translation file : Specify the translation file.

    -help : This help
    @

    When I do it in practice, it always generates an Unknown option error:

    @
    $ ../QmlTestRunner/QmlTestRunner -qtquick1
    Unknown option: '-qtquick1'
    ...
    ...
    @

    If I don't pass in the -qtquick1 option but simply run the program, I get this:

    @
    $ ../QmlTestRunner/QmlTestRunner
    file:///Users/user/workdir/mpaqtapp/tests/tst_Settings/tst_Settings.qml:1:1: module "QtQuick" is not installed
    import QtQuick 1.0
    ^
    @

    1 Reply Last reply
    0

    • Login

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