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

Access to QChart

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • M Offline
    M Offline
    Milori
    wrote on last edited by
    #1

    Hi,
    I need accessing to object QChart from few methods. Defining QChart *tempChart = new QChart(); in main file, not in method, do fall program due "Segmentation fault". Is there any solution?

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

      Hi,

      How are you accessing that object in the rest of your code ?

      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
      • M Milori

        Hi,
        I need accessing to object QChart from few methods. Defining QChart *tempChart = new QChart(); in main file, not in method, do fall program due "Segmentation fault". Is there any solution?

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Milori The solution is: do not access it from many different places! It should be managed at one place. All other places can provide changes/data/what ever via signals/slots. You should describe better what you want to achieve.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • M Offline
          M Offline
          Milori
          wrote on last edited by
          #4

          I need periodically to render chart with new data. Staying code called over timer by each loop also add new axis with legends to chart a bit shifted to center of chart. After few loops chart shows only axisses and legends. I trying remove axis, hidding legend, destruct chart object, without effect.

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

            Then you really should have only one central place that manages your QChart and handle the new data/remove the old etc.

            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