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. Qt5: mixing QtQuick/QML and QGraphicsItem (working with scenegraph on C++ side)
Forum Updated to NodeBB v4.3 + New Features

Qt5: mixing QtQuick/QML and QGraphicsItem (working with scenegraph on C++ side)

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.3k 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.
  • A Offline
    A Offline
    André Bergner
    wrote on last edited by
    #1

    I have a Qt 4.8 application in which I'm currently mixing QtQuick with the QGraphicsItem framework.
    Precisely, I am having a QGraphicsScene inside a QGraphicsView and I have a small framework which allows me to add views to the scene. The views can be written either in plain QML (instantiated in C++ via QDeclarativeComponent and friends) or they are implemented directly using the QGraphicsItem derived classes.

    Qt5 implements QML items within the new scenegraph framework. If I understood the sources correctly the new QtQuick 2 items are not implemented as QDeclarativeItems but derive from QQuickItem instead.

    Is there still a way to mix QGraphicItems with the new QML items? If not, is it at least possible to control the QML-scenegraph from the C++ side? I'm planning a somewhat larger application and would like to manage the creation and presentation of views on the C++ side, e.g. by using classes named QmlViewFactory, QmlViewSceneManager, and simliar patterns.

    Thanks in advance.

    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