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. Line chart in QT 5.6
Forum Updated to NodeBB v4.3 + New Features

Line chart in QT 5.6

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
14 Posts 5 Posters 2.9k Views 3 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.
  • aha_1980A aha_1980

    @drd1988on

    Can you upgrade to a newer Qt Version? E.g. 5.9.x or 5.12? I'm not sure if 5.6 already contained the QtCharts module (which is GPL licenced, by the way). Edit: 5.6 already contained QtCharts.

    Is it possible to integrate QChart and If possible then how can i implement it?
    Or how can i use canvas for the same?

    Of course, always :)

    There are other plotting libraries that work well with Qt, e.g. qcustomplot. You can just google them.

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #4

    @aha_1980
    Hi
    Should in not be installer then ? (for 5.6)
    alt text
    or am i just blind ?:)

    aha_1980A 1 Reply Last reply
    1
    • mrjjM mrjj

      @aha_1980
      Hi
      Should in not be installer then ? (for 5.6)
      alt text
      or am i just blind ?:)

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #5

      @mrjj Interesting. Reading http://blog.qt.io/blog/2016/01/18/qt-charts-2-1-0-release I thought that would be the case.

      So, my recommendation to upgrade to 5.9.x or 5.12 stays :)

      Qt has to stay free or it will die.

      mrjjM 1 Reply Last reply
      2
      • aha_1980A aha_1980

        @mrjj Interesting. Reading http://blog.qt.io/blog/2016/01/18/qt-charts-2-1-0-release I thought that would be the case.

        So, my recommendation to upgrade to 5.9.x or 5.12 stays :)

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @aha_1980
        Ahh, from your link.
        "With Qt 5.7 release the packages will include a pre-built version of the module"
        Which Installer agrees with.

        aha_1980A 1 Reply Last reply
        1
        • mrjjM mrjj

          @aha_1980
          Ahh, from your link.
          "With Qt 5.7 release the packages will include a pre-built version of the module"
          Which Installer agrees with.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #7

          @mrjj ok, reading helps, as usual :)

          So with 5.6 you have to build from source.

          Qt has to stay free or it will die.

          D 1 Reply Last reply
          0
          • KazuoAsanoK Offline
            KazuoAsanoK Offline
            KazuoAsano
            Qt Champions 2018
            wrote on last edited by
            #8

            Thk! @aha_1980 , @mrjj it was also a very good learning , me too.

            1 Reply Last reply
            1
            • KazuoAsanoK KazuoAsano

              It find Line chart with Qt Chart in Qt example.
              You will select an example with mode selector on the left side of Qt Creator.
              And When you search at "Callout", you can use the sample of Line chart.

              0_1545982765920_Screenshot from 2018-12-28 16-25-32.png

              The same contents can be seen on the Web!
              https://doc.qt.io/qt-5.11/qtcharts-callout-example.html

              D Offline
              D Offline
              drd1988on
              wrote on last edited by
              #9

              @KazuoAsano My problem is I cannot upgrade to my QT version.My project requirement is QT 5.6

              mrjjM 1 Reply Last reply
              0
              • D drd1988on

                @KazuoAsano My problem is I cannot upgrade to my QT version.My project requirement is QT 5.6

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #10

                @drd1988on
                Hi
                Its a module so you can build it and att to your Qt installation.
                code from here
                git://code.qt.io/qt/qtcharts.git

                You can see build instruction here
                https://github.com/qt/qtcharts

                1 Reply Last reply
                2
                • KazuoAsanoK Offline
                  KazuoAsanoK Offline
                  KazuoAsano
                  Qt Champions 2018
                  wrote on last edited by
                  #11

                  @drd1988on ,
                  OK, I think that It may be hard to build Qt Chart at Qt5.6.

                  My others solution, I will provide Qwt(Qt Widgets for Technical Applications) library(no official library on Qt).

                  http://qwt.sourceforge.net

                  Qwt contain an easy 2D plots framework.
                  ex : line plot
                  http://qwt.sourceforge.net/curvescreenshots.html

                  Qwt library also need building, but it may be easier than Qt Chart build at Qt5.6.
                  I'm also using from Qt4.8. and it's useful library for graph creation.

                  1 Reply Last reply
                  2
                  • aha_1980A aha_1980

                    @mrjj ok, reading helps, as usual :)

                    So with 5.6 you have to build from source.

                    D Offline
                    D Offline
                    drd1988on
                    wrote on last edited by
                    #12

                    @aha_1980 How can I build from source and how can i use it in 5.6?
                    Hi
                    Thank u for the support.But I hav esome doubts,actualy I am trying to do this in Linux PC.How to integrate it in QT in a Linux PC?

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

                      Hi,

                      The usual way:

                      pushd build_qtchart
                      /path/to/Qt5.6/bin/qmake /path/to/qtcharts
                      make
                      make install
                      popd
                      

                      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
                      • D Offline
                        D Offline
                        drd1988on
                        wrote on last edited by
                        #14

                        hi
                        Now I am using QT5.11 is using.
                        I wants to add customised labels for x axis from QML.Also I wants to edit the colours of label too
                        Can anyone help me?

                        Regards
                        DRD

                        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