Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make desktop app with logic in C++ and gui in Qt Quick/QML?
Forum Updated to NodeBB v4.3 + New Features

How to make desktop app with logic in C++ and gui in Qt Quick/QML?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.2k 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.
  • H Offline
    H Offline
    Hostel
    wrote on last edited by
    #1

    Hello,

    in next week I want to familiar with Qt 5. Currently I'm working on Qt 4.7 and I don't use Qt Quick. I think about to try make application for desktop which logic will be written in C++ and gui would be in Qt Quick/QML. What topics from doc I should read? I found this:
    "Integrating QML and C++":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-topic.html
    This will be good to start about embedding QML in C++? What else are you suggest to read?

    I will be grateful for your help.
    Best regards.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fahmy
      wrote on last edited by
      #2

      May I sugget http://doc.qt.digia.com/qt/qtbinding.html

      Stay hungry, stay foolish.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hostel
        wrote on last edited by
        #3

        Thanks Fahmy.

        Maybe somebody know about example application or open source project where C++ Qt uses QML as gui?

        1 Reply Last reply
        0
        • U Offline
          U Offline
          utcenter
          wrote on last edited by
          #4

          Are you asking about extending QML using C++ or abstracting logic from UI?

          Signals and slots, properties, Q_INVOCABLE is pretty much all you need to "glue" C++ logic and put that inside of a QML UI. You can then easily implement different UIs, either with QtWidget or QML, using the same logic.

          If you want to display data in QML, you might also have to build data models in C++.

          And lastly - the concept of extending QML, which isn't really a matter of abstracting logic from UI, but may also be used in that context.

          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