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. KDGantt Chart Click on Bars in Graph
Forum Updated to NodeBB v4.3 + New Features

KDGantt Chart Click on Bars in Graph

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 340 Views 2 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.
  • P Offline
    P Offline
    Phamy1289
    wrote on last edited by
    #1

    I been looking through the internet and found little to no resources, except the source documentation in Github, on how to be able to click on the bars (circled in red) in the gantt chart to display information on the bottom section (circled in blue). The information on the bottom section are all hard coded in. Is there something that I missed?

    13d49642-e8a5-4207-afff-4432bc3bbc24-image.png

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Phamy1289
      wrote on last edited by
      #2

      Nevermind, I figured what was wrong, there was click signal that came with the KDGantt. I was using SIGNAL(clicked()), when I should have been using SIGNAL(clicked(QModelIndex)) which it autofilled. All I had to do left was make my SLOT match the SIGNAL. Sorry about this.

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

        Hi,

        To avoid that kind of issue, you should migrate to the new connect syntax using function pointers.

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

        M 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          To avoid that kind of issue, you should migrate to the new connect syntax using function pointers.

          M Offline
          M Offline
          mchinand
          wrote on last edited by mchinand
          #4

          @SGaist said in KDGantt Chart Click on Bars in Graph:

          To avoid that kind of issue, you should migrate to the new connect syntax using function pointers.

          Has it ever been suggested that uses of the old connect syntax should generate compile-time warnings? The 'new' connect syntax is not all that new anymore.

          SGaistS 1 Reply Last reply
          0
          • M mchinand

            @SGaist said in KDGantt Chart Click on Bars in Graph:

            To avoid that kind of issue, you should migrate to the new connect syntax using function pointers.

            Has it ever been suggested that uses of the old connect syntax should generate compile-time warnings? The 'new' connect syntax is not all that new anymore.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @mchinand it can't otherwise it would have been implemented a long time ago.

            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

            • Login

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