Qt Creator how to use qmlscene instead of qmlviewer

  • I have 2 Qt Quick 2 projects loaded in Qt Creator (2.8.1 on OSX).

    When using cmd-R to view them, one of them works fine, but the other gives this error:

    qmlviewer: 'import QtQuick 2.1' is not supported by qmlviewer. Use qmlscene to load file

    In the "build and run kit selector" pane "Run:" for the working project says "QML Scene" and for the non working one says "QML Viewer". How to I change it to QML Scene?

  • you can run it from Qt creator
    Go to tools -> External -> Qt Quick -> Qt quick 2 preview(qmlscene)

Log in to reply