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. Connecting C++ console project with qml (Qt Quick Application)
Forum Updated to NodeBB v4.3 + New Features

Connecting C++ console project with qml (Qt Quick Application)

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.1k 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
    Mruvek
    wrote on last edited by
    #1

    Hi, how to connect my C++ console project (simple board game) with qml project (Qt Quick Application)? I want to add graphics and mouse areas. I have class "dice", which have attribute "value". How can I use this value in my Item in qml? For example I want to roll, so i click on the sprite with dice and then i want to call method which returning random number 1..6. How can i do it? (sorry about my english)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daliusd
      wrote on last edited by
      #2

      Start here: http://doc.qt.digia.com/qt/qml-extending.html

      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