Results 1 to 2 of 2

Thread: How to show scrollbars when magnifying a plot?

  1. #1
    Join Date
    Jul 2010
    Posts
    37
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default How to show scrollbars when magnifying a plot?

    I'm usign qwt 6.0.1 with qt 4.7.1.

    I modified realtime demo: in the costructor of RandomPlot I added this line:
    QwtPlotMagnifier * Magnifier = new QwtPlotMagnifier(canvas());
    All works ok with zoomer and magnifier, but when I use mouse wheel to magnify the plot, it doesn't show the scrollbars autoamtically, instead the qwtplotzoomer does.

    How do I enable scroll bar appearence with magnifier too?

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

    Default Re: How to show scrollbars when magnifying a plot?

    You can't - at least not with code of the example.

    But you can try to understand the ScrollZoomer class and move the handling of the scrollbars to your application code and connect it to QwtScaleWidget::scaleDivChanged() signals.

    Uwe

Similar Threads

  1. Show text on mouse hover on plot
    By pkj in forum Qwt
    Replies: 1
    Last Post: 25th February 2011, 07:36
  2. Mouse magnifying-glass?
    By jomotix in forum Newbie
    Replies: 1
    Last Post: 10th January 2011, 15:25
  3. Scrollbars for QStackedLayout
    By JohannesMunk in forum Newbie
    Replies: 0
    Last Post: 6th December 2009, 16:50
  4. Replies: 1
    Last Post: 27th August 2009, 23:06
  5. QGraphicsView and scrollbars
    By godmodder in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 22:34

Tags for this Thread

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.