Results 1 to 3 of 3

Thread: canvas and interval of axis

  1. #1
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default canvas and interval of axis

    Can we return the interval of xAxis from the canvas?

  2. #2

    Default Re: canvas and interval of axis

    Quote Originally Posted by hassinoss View Post
    Can we return the interval of xAxis from the canvas?

    You can get the axis interval from your QwtPlot object:

    Qt Code:
    1. double width = this->axisInterval(QwtPlot::xBottom).width();
    To copy to clipboard, switch view to plain text mode 

    or you can get the width of the canvas like this:

    Qt Code:
    1. int width = this->canvas()->width();
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: canvas and interval of axis

    Thank you for your response, but are those two widths equals?

Similar Threads

  1. Replies: 7
    Last Post: 10th July 2013, 13:32
  2. Replies: 6
    Last Post: 7th June 2013, 13:39
  3. Replies: 10
    Last Post: 21st September 2011, 08:03
  4. Replies: 9
    Last Post: 3rd May 2011, 21:21
  5. QSpinBox interval
    By Jordan in forum Newbie
    Replies: 9
    Last Post: 25th May 2010, 11:07

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.