Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [SOLVED] QwtPlotZoomer zoom out using QPushButtons?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QwtPlotZoomer zoom out using QPushButtons?

Scheduled Pinned Locked Moved 3rd Party Software
3 Posts 2 Posters 3.8k 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    Is is possible to zoom out after zooming in (any amount of stacks) to the stack index of 0 using a push button in a QwtPlotZoomer?

    My layout has 2 push buttons, 1 push button that turns the zoomer on and off, then I have another push button that will zoom all the way out to its original state. I cant find a way to do this...my application is going to be used on a touch screen so I cannot use push events...

    Any Qwt Guru's out there? Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scylla
      wrote on last edited by
      #2

      @zoomer->zoom(0)@
      should help!

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        Thanks! I had actually figured out another way as well!

        @
        zoomer->setZoomStack(zoomer->zoomStack(), 0);
        @

        My other issue was I was not initializing my stack after I set my data points

        @
        setZoomBase();
        @

        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