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. Comunication from C++ and Qml interface
Forum Updated to NodeBB v4.3 + New Features

Comunication from C++ and Qml interface

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 730 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.
  • M Offline
    M Offline
    mikecurl91
    wrote on last edited by
    #1

    Hi,
    I've a user interface made by QML, and now I'm starting to develop the backend engine of the application (the C++ core).
    I've see on doc guide, that there are a lot of different ways to establish comunication from these two part of the application: what is the best, and simpliest?
    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      None is best, most are simple once you get the idea ;)

      I usually attach QObject-derivatives as global context properties to QML for stuff that I need everywhere (for example, app settings). Then I also use custom QQuickItem subclasses and register them to do some more hardcore integration with C++ (and save some memory and CPU power) in some cases.

      The least useful (in my specific use case!) is the "static" context property: I only use it to manage relative paths (I have a PWD property that holds the root dir).

      (Z(:^

      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