Results 1 to 4 of 4

Thread: Panning to right

  1. #1
    Join Date
    Apr 2013
    Posts
    18
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Lightbulb Panning to right

    Hello!

    I use panning in my software with by calling function
    QwtPlot::setAxisScale

    When the right-most label of bottom scale is on the border
    and i want to move the chart to the right,
    you can see the effect the narrowing of chart.
    It is only when moving to the right.

    A think this problem in function
    void QwtScaleWidget::getBorderDistHint
    , because incorrectly selected values of 'start' and 'end'

    I almost do not speak English and I beg your forgiveness for bad text.

    Thanks!

    Andrey

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

    Default Re: Panning to right

    Guess it is because the plot layout needs to reserve space for the tick label. You don't have this effect at the left end because there is enough space below the left axis. On possible solution to this problem is to rotate the tick labels, like it is done in the cpuplot example.

    Uwe

  3. #3
    Join Date
    Apr 2013
    Posts
    18
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Panning to right

    Uwe,

    If you look at TeeChart, this effect is not there.
    I think that the rotation the tick labels is not true solution to the problem.
    Can I suggest a solution, and the changes to be added to the branch qwt?

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

    Default Re: Panning to right

    It is always possible to discuss modifications,

    Uwe

Similar Threads

  1. OpenGL panning and rotating
    By bob2012 in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2012, 16:11
  2. Panning with Qwt
    By Momergil in forum Qwt
    Replies: 2
    Last Post: 2nd March 2012, 10:16
  3. Need Help Regarding Image panning in QT
    By sekhar18k in forum Qt Programming
    Replies: 4
    Last Post: 28th September 2010, 08:18
  4. Panning QGraphicsScene
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2009, 21:41
  5. Panning
    By linuxdev in forum The GraphicsView Framework
    Replies: 3
    Last Post: 30th December 2008, 07:40

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.