Important: Please read the Qt Code of Conduct -

[SOLVED] main.cpp procedure question

  • I'm still a little new to Qt - please bear with me.

    When I create a new QtQuick Application, in the main.cpp file I have the following in my main function:

    QtQuick2ApplicationViewer viewer;

    What is the difference between that method of initialization and this one:

    QQuickView* view = new QQuickView(QUrl("qml/01-048-2801-Rev1/main.qml"));

    And if I'm writing a GUI that calls a lot of C++ functions, which is proper, or rather which is proper convention? I see both as accomplishing the same task, but I've only ever used the latter, which is prevelant in most of the examples I've seen.

    Thanks for your time, all!

  • Nevermind, figured it out. Thanks all!

Log in to reply