Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to Create C++ Objects Dynamically.

    General and Desktop
    2
    3
    1358
    Loading More Posts
    • 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
      Keith77 last edited by

      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 Reply Quote 0
      • A
        AcerExtensa last edited by

        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 Reply Quote 0
        • K
          Keith77 last edited by

          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 Reply Quote 0
          • First post
            Last post