Skip to content
  • 0 Votes
    4 Posts
    1k Views
    E

    After further testing, the issue isn't the "run in terminal" setting.

    Instead, it seems that if I'm using the QtQuick/QML stuff, then QtCreator reports the following:

    11:16:51: Starting /tmp/QmlTest/bin/QmlTest ...
    11:16:51: Application finished with exit code 0.

    i.e. it runs, but exits immediately, with no error code.

    If I then ssh into my target and manually run the same binary, I see the expected output on the screen, and it doesn't exit until I kill it with ^C.

    I don't see this issue if I run an QtWidget application.

    The C++ launcher for the QmlTest application is below. The contents of the QML file doesn't seem to matter.

    #include <QGuiApplication>
    #include <QQuickView>

    int main(int argc, char *argv[])
    {
    QGuiApplication app(argc, argv);

    QQuickView *view = new QQuickView; view->setSource(QUrl(QLatin1String("qrc:/main.qml"))); view->show(); return app.exec();

    }

  • 0 Votes
    1 Posts
    582 Views
    No one has replied
  • 0 Votes
    6 Posts
    2k Views
    J

    @mrjj yeah its not, but thanks though

  • 0 Votes
    2 Posts
    3k Views
    raven-worxR

    @M4RZB4Ni
    this actually has nothing todo with Qt.
    You need to check how to use the Twain API.
    Then after building it integrate it into your project like any other 3rd party lib.,

    Edit:
    I just noticed that the TWAIN example app already builds upon Qt. Qt 4 though, but definitely something to start with.