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. How to set the Z-axis length of Q3DSurface
Forum Updated to NodeBB v4.3 + New Features

How to set the Z-axis length of Q3DSurface

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

    Hello,

    I have a little problem and hope you are able to help me: I use Q3DSurface to do a real-time 3D data display. However, since the X-axis data is inconsistent with the data interval of the Z-axis data, the displayed 3-dimensional graphics are not intuitive enough, and the Z-axis length is too small.Just as the picture below, Is there have a way to set the length of Z-axis to become longer and not change the value range of Z-axis.
    I hope that I could convey my problem. If not, just ask me :)

    Greetings,

    Sam
    0_1560070181838_55.png

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jala
      wrote on last edited by
      #2

      Hi,

      I know this thread is already a bit old, but since I had the same problem recently and found no solution here, I thought I´d share mine for the the next one thats looking here.

      Instead of changing the length of the Axis you can change the default automatic HorizontalAspectRatio to a self defined value by using the setHorizontalAspectRatio function from the QAbstract3DGraph class: https://doc.qt.io/qt-5/qabstract3dgraph.html#horizontalAspectRatio-prop

      E.g.: graph->setHorizontalAspectRatio(1.0); //for a quadratic appearance.

      Greetz.

      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