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. Q3DSurface how to remove axis labels and grids?
Forum Updated to NodeBB v4.3 + New Features

Q3DSurface how to remove axis labels and grids?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 971 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.
  • M Offline
    M Offline
    mjsmithers
    wrote on last edited by
    #1

    Hi,

    Does anyone know how to disable or hide the axis grids and value labels for a Q3DSurface?

    I'm working towards a 3D balloon plot and I don't need the labels and grids.

    Also, I'd like to plot multiple 'surfaces' on the one Q3DSurface widget but I haven't seen anything like this in the documentation. (I've successfully done this in Matlab.)

    Kind regards,
    Michael

    beeckscheB 1 Reply Last reply
    0
    • M mjsmithers

      Hi,

      Does anyone know how to disable or hide the axis grids and value labels for a Q3DSurface?

      I'm working towards a 3D balloon plot and I don't need the labels and grids.

      Also, I'd like to plot multiple 'surfaces' on the one Q3DSurface widget but I haven't seen anything like this in the documentation. (I've successfully done this in Matlab.)

      Kind regards,
      Michael

      beeckscheB Offline
      beeckscheB Offline
      beecksche
      wrote on last edited by beecksche
      #2

      @mjsmithers

      Have you found a solution?

      Edit:
      To disable the grid:

      Q3DSurface *surface = new Q3DSurface();
      surface->activeTheme()->setGridEnabled(false);
      

      And a more or less ugly solution for the labels:

      surface->activeTheme()->setLabelBackgroundColor(Qt::white);
      surface->activeTheme()->setLabelBorderEnabled(false);
      surface->activeTheme()->setLabelTextColor(Qt::white);
      

      or

      surface->axisX()->setLabelFormat("");
      surface->axisY()->setLabelFormat("");
      surface->axisZ()->setLabelFormat("");
      
      1 Reply Last reply
      0
      • M Offline
        M Offline
        mjsmithers
        wrote on last edited by
        #3

        No I didn't find a solution. Thanks very much for the suggestions.

        In the end I implemented my own 3D balloon plotting QT widget which renders in openGL.

        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