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 to create a gui for a pure c++ data model (no qt)
Forum Updated to NodeBB v4.3 + New Features

How to create a gui for a pure c++ data model (no qt)

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

    What is the best approach to implementing a gui for an existing c++ library?

    The library in question represents graph data using simple c++ objects (no qt) and standard pointers. I.e do I write an abstraction layer to provide QObject classes with signals and properites?

    Perhaps there is some tutorial somewhere that would be relevant?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      Use Qt model-view framework, write your custom model to contain your data.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vladstelmahovsky
        wrote on last edited by
        #3

        Since QtQuick is signal-slot model driven, then yes, you have to provide QObject class over your pure c++ libs

        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