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. Porting a "model" using graphicsview-scene framework

Porting a "model" using graphicsview-scene framework

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 590 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.
  • T Offline
    T Offline
    thiberi0
    wrote on 13 Mar 2015, 22:03 last edited by
    #1

    I have made a application that uses the concepts from diagramscene example from QtWidgets and would like to know if is possible to do something like that in QML. The core part of application it is a custom class derived from QGraphicsScene and some custom items derived from QGraphicsItem, just like the example.
    I would like to know if its possible to create objects dynamically(when someone click some point of screen) and manage them in QML using c++. It's worth it the effort?Or QtWidgets will still be used in long future?

    thiberi0

    M 1 Reply Last reply 13 Mar 2015, 22:19
    0
    • T thiberi0
      13 Mar 2015, 22:03

      I have made a application that uses the concepts from diagramscene example from QtWidgets and would like to know if is possible to do something like that in QML. The core part of application it is a custom class derived from QGraphicsScene and some custom items derived from QGraphicsItem, just like the example.
      I would like to know if its possible to create objects dynamically(when someone click some point of screen) and manage them in QML using c++. It's worth it the effort?Or QtWidgets will still be used in long future?

      M Offline
      M Offline
      mcosta
      wrote on 13 Mar 2015, 22:19 last edited by
      #2

      @thiberi0 said:

      I would like to know if its possible to create objects dynamically(when someone click some point of screen) and manage them in QML using c++.

      Yes you can; you can use QML for UI and C++ for the logic (is the standard for non trivial application)

      There're no plans to drop QtWidgets; but keep in mind that QtQuick is the suggested technology for new applications and it is the one where the Qt developers will spend most of the time.

      And, last but not least, QtQuick use in a better way accelerated graphics.

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0

      1/2

      13 Mar 2015, 22:03

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved