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.
  • K Offline
    K Offline
    KazuoAsano
    Qt Champions 2018
    wrote on 28 Dec 2018, 07:39 last edited by
    #2

    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 1 Reply Last reply 28 Dec 2018, 11:27
    2
    • D drd1988on
      28 Dec 2018, 05:15

      Hi
      I am a beginner in QT.

      I am using QT 5.6 and I wants to plot linechart in my project.
      Is it possible to integrate QChart and If possible then how can i implement it?
      Or how can i use canvas for the same?

      Regards
      Divya

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 28 Dec 2018, 07:49 last edited by aha_1980
      #3

      @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.

      Qt has to stay free or it will die.

      M 1 Reply Last reply 28 Dec 2018, 08:07
      2
      • A aha_1980
        28 Dec 2018, 07:49

        @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.

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 28 Dec 2018, 08:07 last edited by
        #4

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

        A 1 Reply Last reply 28 Dec 2018, 08:21
        1
        • M mrjj
          28 Dec 2018, 08:07

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

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 28 Dec 2018, 08:21 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.

          M 1 Reply Last reply 28 Dec 2018, 08:27
          2
          • A aha_1980
            28 Dec 2018, 08:21

            @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 :)

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 28 Dec 2018, 08:27 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.

            A 1 Reply Last reply 28 Dec 2018, 08:28
            1
            • M mrjj
              28 Dec 2018, 08:27

              @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.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 28 Dec 2018, 08:28 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 31 Dec 2018, 06:30
              0
              • K Offline
                K Offline
                KazuoAsano
                Qt Champions 2018
                wrote on 28 Dec 2018, 09:16 last edited by
                #8

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

                1 Reply Last reply
                1
                • K KazuoAsano
                  28 Dec 2018, 07:39

                  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 28 Dec 2018, 11:27 last edited by
                  #9

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

                  M 1 Reply Last reply 28 Dec 2018, 12:54
                  0
                  • D drd1988on
                    28 Dec 2018, 11:27

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

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 28 Dec 2018, 12:54 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
                    • K Offline
                      K Offline
                      KazuoAsano
                      Qt Champions 2018
                      wrote on 28 Dec 2018, 13:18 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
                      • A aha_1980
                        28 Dec 2018, 08:28

                        @mrjj ok, reading helps, as usual :)

                        So with 5.6 you have to build from source.

                        D Offline
                        D Offline
                        drd1988on
                        wrote on 31 Dec 2018, 06:30 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
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 31 Dec 2018, 22:19 last edited by aha_1980 1 Jan 2019, 08:07
                          #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 2 Jan 2019, 09:23 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

                            11/14

                            28 Dec 2018, 13:18

                            • Login

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