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 Create C++ Objects Dynamically.

How to Create C++ Objects Dynamically.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views
  • 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.
  • K Offline
    K Offline
    Keith77
    wrote on last edited by
    #1

    Hi, I'm a relative beginner with Qt Creator, and have some experience with C++ but I'm new to QML.
    I've been going through the following Dynamic Scene Example:

    http://qt-project.org/doc/qt-4.8/declarative-toys-dynamicscene.html

    I follow how the objects are created dynamically using QML. I want to know is it possible to create
    similar objects dynamically using C++ funtions in Qt Creator, as I cant seem to find any examples
    of this.

    My goal is to extend QML using C++.
    ie. C++ functions -> QML properties.

    Thank you.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      Is it that what you are searching for? "Using QML Bindings in C++ Applications":http://qt-project.org/doc/qt-4.8/qtbinding.html

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Keith77
        wrote on last edited by
        #3

        Thanks for the reply.
        I had spotted this tutorial also but unfortunately it does not create objects that can be open, closed, attached etc. it only creates static objects. I cant seem to find examples on qt-project.org so I was hoping to find some elsewhere.

        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