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. QtCharts, Limit Zoom.
Qt 6.11 is out! See what's new in the release blog

QtCharts, Limit Zoom.

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

    I am trying to build a desktop application with QtCharts. I need line plots with 2 Y axis, first is having any range, the second is limited to -pi...pi.

    Now I implemented the zoom as shown in the example: http://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html

    I wonder however how to limit this zoom. I do not want the zoom to be larger than the range of the data.
    The first idea was to get a signal such as "OnZoom" and modify the range. However nothing like that exists.
    Why and how would this be solved ?

    Also I do not know how to get the current range of the axis. I have a QChart available, but need to know the range of xaxis and both yaxis.
    http://doc.qt.io/qt-5/qchart.html#axes gives me only a list of Axes.

    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