Results 1 to 4 of 4

Thread: Chart's controls

  1. #1
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Chart's controls

    Hi!

    Is it possible to make controls to change the displayed range of the graph similar to TeeChart?

    Example:

    TeeChartButtons.png

    Thanks by advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Chart's controls

    I don't know TeeChart, but I guess you want to click somewhere on the axis to scroll its range up/down ?

    Uwe

  3. #3
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Chart's controls

    Quote Originally Posted by Uwe View Post
    I don't know TeeChart, but I guess you want to click somewhere on the axis to scroll its range up/down ?

    Uwe
    Yes, I want.

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Chart's controls

    There is no built in implementation, but you can do it easily by installing an event filter for the axis widget + using QwtPlot::setAxisScale() for scrolling.

    Uwe

Similar Threads

  1. Chart Widget
    By wirasto in forum Qt Programming
    Replies: 6
    Last Post: 14th August 2009, 18:24
  2. how much about kd chart
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 09:54
  3. what chart for qt?
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2009, 11:07
  4. Hiding controls changes spacing of other controls
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2007, 20:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.