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. Project files in q Qt application combining both C++ and QML
Forum Updated to NodeBB v4.3 + New Features

Project files in q Qt application combining both C++ and QML

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 690 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.
  • S Offline
    S Offline
    schalll
    wrote on last edited by
    #1

    Hello all,

    I'll like to create q Qt application combining both C++ and QML code.
    The code could be composed for example by the following files:

    @Apps\app.pro
    \main.cpp
    \app\file1.cpp
    \app\file1.hpp
    \app\file2.cpp
    \app\file2.hpp
    \gui\main.qml
    \components\component1.qml
    \components\component2.qml
    \components\component3.qml@

    My question here is for understanding where the project files (.pro .pri) files have to be placed, what template have to be used and how these files should look like.

    @Apps\app.pro
    \main.cpp
    \app\app.pri
    \app\file1.cpp
    \app\file1.hpp
    \app\file2.cpp
    \app\file2.hpp
    \gui\main.qml
    \components\components.pro
    \components\component1.qml
    \components\component2.qml
    \components\component3.qml@

    Can someone point me to a good example which I could base on?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      You can look at the example directory in your Qt installation.

      Examples/Qt-5.3/quick/controls/calendar

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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