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

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 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 15 Jun 2016, 18:47 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 15 Jun 2016, 19:02 last edited by
      #2

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

      M 1 Reply Last reply 15 Jun 2016, 19:05
      0
      • ? A Former User
        15 Jun 2016, 19:02

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

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 15 Jun 2016, 19:05 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 15 Jun 2016, 19:14
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on 15 Jun 2016, 19:13 last edited by
          #4

          It works
          I replace

          #include <QSeriesLine>
          

          to

          #include <QtCharts/QLineSeries>
          
          1 Reply Last reply
          1
          • M mrjj
            15 Jun 2016, 19:05

            @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 15 Jun 2016, 19:14 last edited by A Former User
            #5

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

            ? 1 Reply Last reply 15 Jun 2016, 19:16
            1
            • ? A Former User
              15 Jun 2016, 19:14

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

              ? Offline
              ? Offline
              A Former User
              wrote on 15 Jun 2016, 19:16 last edited by
              #6

              @Wieland
              No problem :)

              1 Reply Last reply
              0

              4/6

              15 Jun 2016, 19:13

              • Login

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