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. QtCharts not useable in spite of the header include

QtCharts not useable in spite of the header include

Scheduled Pinned Locked Moved Solved General and Desktop
qtchartsheaderinclude
6 Posts 3 Posters 2.3k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi.
    Ich habe Qt Charts installiert. habe sogar #include <QLineSeries> geschrieben. Innerhalb meiner Funktion void Mainwindow::diagram () {
    QLineSeries *series = new QLineSeries();
    }
    kennt er QLineSeries aber nicht.. Warum?

    I have installed Qt Charts. I included #include <QLineSeries> which is auto detecting by Qt Creator. I also include QT += charts in the .pro file.

    Now I have the function

    void MainWindow::Diagramm() {
     QLineSeries *series = new QLineSeries();
    }
    

    Here he don't know about QLineSeries. Why?

    Danke,
    Thank you,

    Henrik

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Maybe you forgot to add QT += charts to your project file?

      mrjjM 1 Reply Last reply
      0
      • ? A Former User

        Maybe you forgot to add QT += charts to your project file?

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

        @HenrikSt. said:

        . I also include QT += charts in the .pro file.

        nope, but i wonder if it accept it?

        ? 1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          It works
          I replace

          #include <QSeriesLine>
          

          to

          #include <QtCharts/QLineSeries>
          
          1 Reply Last reply
          1
          • mrjjM mrjj

            @HenrikSt. said:

            . I also include QT += charts in the .pro file.

            nope, but i wonder if it accept it?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by A Former User
            #5

            @mrjj Oh, didn't read carefully enough...

            ? 1 Reply Last reply
            1
            • ? A Former User

              @mrjj Oh, didn't read carefully enough...

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @Wieland
              No problem :)

              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