Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved QLineSeries undeclared identifier

    General and Desktop
    4
    6
    1982
    Loading More Posts
    • 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.
    • ivanicy
      ivanicy last edited by

      Hello,

      I have the 5.7.0 Qt version and I am trying to do a graphic with QLineSeries. I had installed the QCharts extension and included the header <QLineSeries> but Qt doesn't recognize it. Someone knows what is happening?

      Thank you very much!

      1 Reply Last reply Reply Quote 0
      • Ratzz
        Ratzz last edited by

        @ivanicy
        Show me what you tried?

        --Alles ist gut.

        1 Reply Last reply Reply Quote 1
        • ivanicy
          ivanicy last edited by

          Hello, thank you for answer me.

          This is that I am trying. This type of graphic:

          http://doc.qt.io/qt-5/qtcharts-linechart-example.html

          but Qt doesn't recognize me the QLineSeries

          Thank you

          1 Reply Last reply Reply Quote 0
          • VRonin
            VRonin last edited by

            in your .pro file add QT += charts and then rerun qmake
            source: https://doc.qt.io/qt-5/qtcharts-index.html#getting-started

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply Reply Quote 3
            • ivanicy
              ivanicy last edited by

              Thank you very much.

              I have this line too, but the links you send me give me information to fix my error. I have to include <QtCharts> and it resolves my problem.

              Thank you again!

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Hi,

                Don't use the module wide include in production code. Include only what you use. That way you'll save on compile time.

                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 Reply Quote 0
                • First post
                  Last post