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. Drawing with QML
Forum Updated to NodeBB v4.3 + New Features

Drawing with QML

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 598 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
    a4030687
    wrote on last edited by
    #1

    Hi everyone,

    I am planning to expand a project and have some general questions you may can help me with.
    Currently I am programming with QWidgets only (Qt 4.7.4, cannot change the version). For a GUI I want to compare QWidgets and QML.

    What I want to display is a graph. There are nodes(moveable) and edges(fixed. calculated by node pos). Both have geometric attributes which describe them.
    With QWidgets I use QGraphicItems/QGraphicsScene/QGraphicsView to display my graph. I created some easy QML GUIS with tutorials only so I dont have much experience.
    I also have basic knowledge with OpenGL, but im not sure if this is the right thing to do here.
    There are some things that need to be possible.

    1. I want to use my QGraphicsItems derived models so I can choose between QML and QWidget (expanding the models with geometric properties is enough?)
    2. Some objects should be fixed, some moveable. Moving a object should emit a signal, redrawing the edges connected to it.
    3. Objects need access to model function. E.g getting a QMenu getContextMenu() and display it as context menu.
    4. Export the Graph to PDF/SVG
    5. Zooming and selecting an area should be possible. The selected elements should be returned in some way.

    Is there something like a QGraphicScene/View in QML(VisualItemModel??)? I am not sure if using OpenGL is a good idea, since the graphic is not read-only and must be interactive.
    Is this even possible with QML 4.7? If not, would it be in QML 5?

    Any suggestion or hints would be great. 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