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. Unknown type name 'Q3DScatter'

Unknown type name 'Q3DScatter'

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • Z Offline
    Z Offline
    zbysekvoda
    wrote on last edited by
    #1

    I want to create app solving Lorenz Attractor.

    alt text

    In left window (QGraphicsView) i would like to have 3DScatter plot.

    I am trying to utilize example https://doc.qt.io/qt-5.11/qtdatavisualization-scatter-example.html, but I fail on first step:

    Q3DScatter *graph = new Q3DScatter();
    

    Editor says Unknown type name 'Q3DScatter'.

    I have tried

    #include <Q3DScatter>
    

    and

    #include <QtDataVisualization/Q3DScatter>
    

    but nothing helped.

    I can compile and run example https://doc.qt.io/qt-5.11/qtdatavisualization-scatter-example.html without problems.

    Can someone give me a hint? Thank you in advance.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zbysekvoda
      wrote on last edited by
      #2

      I forget to note that I am using MacOS Mojave 10.14 and I have Qt 5.9 (I need this version because of compatibility with school server)

      mrjjM 1 Reply Last reply
      0
      • Z zbysekvoda

        I forget to note that I am using MacOS Mojave 10.14 and I have Qt 5.9 (I need this version because of compatibility with school server)

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

        @zbysekvoda
        hi
        You need to add
        QT += datavisualization
        to .pro and rerun qmake
        https://doc.qt.io/qt-5.11/qtdatavisualization-index.html

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zbysekvoda
          wrote on last edited by
          #4

          @mrjj it seems it helped. Thank you :)

          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