Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create a Gantt diagram
Forum Updated to NodeBB v4.3 + New Features

Create a Gantt diagram

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 7.4k 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.
  • I Offline
    I Offline
    irobot
    wrote on last edited by A Former User
    #1

    Hi everyone.
    I will like to know if you have a link where I can learn on how to implement a gantt chart using Qt. The first idea I had, was to create a QTableWidget with dates like headers of each column and I will just have to color each square (from start of a task to its end). Is that a good approach?
    Thanks to all.

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

      Hi,

      Do you want to implement it yourself ? Or if a solution already exists use that ?

      In the second case there is "KDChart":http://www.kdab.com/kdab-products/kd-chart/ from KDAB

      In the first case, you would probably better start with a custom model/view combo. The model containing your tasks data (like steps, name, dates, etc...). and a custom view rendering each tasks. Look at the Chart example in the Item Views example from the documentation to get the basics.

      Hope it helps

      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
      0
      • I Offline
        I Offline
        irobot
        wrote on last edited by
        #3

        Thanks but Finally I think I will use a Gantt Chart jquery plugin that I will display in a QWebView.

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

          Ok, then this issue can be considered as solved :)

          Can you update the thread's title so other forum users may know ?

          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
          0

          • Login

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