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 from Qt4/QGraphicsView to... what?
Forum Updated to NodeBB v4.3 + New Features

Porting from Qt4/QGraphicsView to... what?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 624 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.
  • S Offline
    S Offline
    sboehmann
    wrote on last edited by
    #1

    Hi,

    I have an application based on Qt4 and QGraphicsView. It is a graphical editor for networks with many nodes and connections between them. The editor looks very similar to applications like https://github.com/jchanvfx/NodeGraphQt or https://github.com/paceholder/nodeeditor.

    If I would rewrite such an application in C++/Qt5 today, what technology should I use or what technology would be best suited?

    QGraphicsView is virtually dead (http://blog.qt.io/blog/2017/01/19/should-you-be-using-qgraphicsview/). I like QML, but how can I handle user input to create, manage and draw the connections between nodes? Maybe Qt3D is the right choice?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The first step would be to simply re-build your application with Qt 5 and fix whatever build error you might get. That way you have your application ready and running.

      Then depending on your GUI, you can start by porting smaller portions to Qt Quick and leave the QGraphicsView part for the end.

      You will likely need to take a look at the Scene Graph - Custom Geometry for some inspiration.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        sboehmann
        wrote on last edited by
        #3

        Thank you for your answer. That helps already.

        Porting to Qt5 is almost done and was very easy. However, the code is old and the UI is really outdated. Especially the UI of the Node Editor component has not changed since over 15 years (ported several times, but never changed visually). Therefore I am currently working on a new UI prototype.

        I like Qml and for most parts of the node editor Qml works very well and straightforward. But I struggle with the mouse input to create connections and also to draw the connections. And I'm struggling with the question: is QML the right technology for this?

        1 Reply Last reply
        0
        • GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by
          #4

          There's this library in qml http://cneben.github.io/QuickQanava/index.html

          1 Reply Last reply
          2

          • Login

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