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
Forum Update on Monday, May 27th 2025

Plotting 3D surface

Scheduled Pinned Locked Moved Solved General and Desktop
q3dsurfacec++data visualizat
2 Posts 1 Posters 791 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 7 Apr 2019, 14:38 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 8 Apr 2019, 18:45 last edited by
      #2

      Solve it...
      added to the .pro file

      QT += datavisualization
      
      1 Reply Last reply
      0

      1/2

      7 Apr 2019, 14:38

      • Login

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