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. QLineSeries undeclared identifier
Forum Updated to NodeBB v4.3 + New Features

QLineSeries undeclared identifier

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 2.5k 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.
  • ivanicyI Offline
    ivanicyI Offline
    ivanicy
    wrote on last edited by
    #1

    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
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @ivanicy
      Show me what you tried?

      --Alles ist gut.

      1 Reply Last reply
      1
      • ivanicyI Offline
        ivanicyI Offline
        ivanicy
        wrote on last edited by
        #3

        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
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          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
          3
          • ivanicyI Offline
            ivanicyI Offline
            ivanicy
            wrote on last edited by
            #5

            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
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              0

              • Login

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