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. Plotting 3D surface
QtWS25 Last Chance

Plotting 3D surface

Scheduled Pinned Locked Moved Solved General and Desktop
q3dsurfacec++data visualizat
2 Posts 1 Posters 787 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.
  • Y Offline
    Y Offline
    YoniBE
    wrote on last edited by
    #1

    Hello!
    I'm new to data visualization in QT, I created a program that does numerical calculation and stores it in a 2D vector.
    Now I want to visualize it as a 3D surface, I found an example at the documentation about that but I don't understand how to create the plot in a new widget. The example shows how to program all the UI in the main.cpp file, but I need the plot on a different window... How can I do this?

    I tried to create another class and copy there the relevant code but I get an error on the line:

        Q3DSurface *graph = new Q3DSurface();
    

    undefined reference to `__imp__ZN19QtDataVisualization16QAbstract3DGraph16setSelectionModeE6QFlagsINS0_13SelectionFlagEE'

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      YoniBE
      wrote on last edited by
      #2

      Solve it...
      added to the .pro file

      QT += datavisualization
      
      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