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. Gantt Chart
Qt 6.11 is out! See what's new in the release blog

Gantt Chart

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 3.7k 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.
  • X Offline
    X Offline
    xTriad
    wrote on last edited by
    #1

    "What I need":http://i40.tinypic.com/6rsjz5.jpg

    I'm needing to put together a Gantt chart for a project like you can see in the image above, and I'm wondering if this is even doable with QtQuick. I downloaded it and have been messing with it, but am having trouble getting things aligned. Could anybody give me a basic layout to implement this? Or do I need to use the C++ tools only?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Perfectly doable in QML. Lay out the table using anchors, then position the Gantt blocks using absolute x and y coordinates (or alternatively, using topMargin and leftMargin).

      (Z(:^

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xTriad
        wrote on last edited by
        #3

        Well it can't be absolute positioning since the program is going to read a file that will have an arbitrary number of processors and tasks, so I have to populate one or two models with information, and have the page dynamically generated. But if it's still possible I'll keep going at it.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Yes, it is. "absolute coords" in QML does not mean the whole scene: you give the positions relative to the parent.

          DO some test apps to get a feeling of how it works, it's really easy.

          (Z(:^

          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