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. How does the "Getting Started" tutorial code actually launch?
Forum Updated to NodeBB v4.3 + New Features

How does the "Getting Started" tutorial code actually launch?

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

    In the tutorials examples directory, there is a .pro Quick project called "gettingStartedQml.pro". I am trying to understand how to run this project. There are two notable areas of confusion:

    1. There is no main.cpp so how does it even get launched?
    2. The Qml interface is in the Core directory, but this directory is not referenced anywhere in the project that I can find, nor do those qml files appear in the Creator when you load the project. How does it see them?
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I;m not familiar with any tutorials, but I may know the answer to "main.cpp" thing: QML can be launched without any use of C++, by running qmlViewer.

      (Z(:^

      1 Reply Last reply
      0
      • U Offline
        U Offline
        uchan
        wrote on last edited by
        #3

        I'm using Qt 5.1.0 and the following process works for me.

        Copy an example directory to somewhere.
        $ cd ~/src
        $ cp -r /usr/local/Qt-5.1.0/examples/quick/tutorials/gettingStartedQml/parts/part5 ./

        Make plugins of the example (if any).
        $ cd filedialog
        $ qmake
        $ make

        When you see .pro file, you can execute qmake and make to build .cpp files.

        Run the example
        $ cd ~/src/part5
        $ qmlscene TextEditor.qml

        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