Results 1 to 7 of 7

Thread: How to get the distance between the axis edge and the canvas edge?

  1. #1
    Join Date
    Jun 2013
    Posts
    56
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default How to get the distance between the axis edge and the canvas edge?

    question.jpg

    How to get the distance marked by a red brace in the picture?
    Can anybody tell me?
    Attached Images Attached Images

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

    Default Re: How to get the distance between the axis edge and the canvas edge?

    Widget or plot coordinates ?

    Uwe

  3. #3
    Join Date
    Jun 2013
    Posts
    56
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to get the distance between the axis edge and the canvas edge?

    Which one is required for the start and end in QwtScaleWidget::setBorderDist (int start, int end)?

    Quote Originally Posted by Uwe View Post
    Widget or plot coordinates ?

    Uwe
    Uwe,
    I just want to get that one which is required for the start and end in QwtScaleWidget::setBorderDist (int start, int end).

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

    Default Re: How to get the distance between the axis edge and the canvas edge?

    What is the motivation behind trying to modify the border distances ?

    Uwe

  5. #5
    Join Date
    Jun 2013
    Posts
    56
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to get the distance between the axis edge and the canvas edge?

    Quote Originally Posted by Uwe View Post
    What is the motivation behind trying to modify the border distances ?

    Uwe
    Uwe,
    I am learning to use qwt to code something recently. Yesterday when I read some thread in our forum (the picture is cut from that thread)I found this.I am curious about the distance mentioned before.How does it come out? I dived into the codes about QwtPlot, QwtPlotLayout, etc.But I have no idea.And why not extend the backbone to touch the canvas edge?If I want to do that, how?

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

    Default Re: How to get the distance between the axis edge and the canvas edge?

    Quote Originally Posted by Nicho View Post
    And why not extend the backbone to touch the canvas edge?If I want to do that, how?
    See: http://qwt.sourceforge.net/class_qwt...b500dc35096d67

    F.e. see the spectrogram example.

    Uwe

  7. #7
    Join Date
    Jun 2013
    Posts
    56
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to get the distance between the axis edge and the canvas edge?

    Quote Originally Posted by Uwe View Post
    See: http://qwt.sourceforge.net/class_qwt...b500dc35096d67

    F.e. see the spectrogram example.

    Uwe
    Sorry, but I didn't find the html page. Is that the same with the doc about qwt-plot-layout in the 6.0 qwt package?

Similar Threads

  1. Edge-detection (maybe using QGL?)
    By mwgobetti in forum Newbie
    Replies: 6
    Last Post: 20th January 2012, 13:32
  2. Replies: 1
    Last Post: 17th August 2011, 19:57
  3. Filll Edge QScintilla
    By wirasto in forum Qt Tools
    Replies: 0
    Last Post: 12th January 2011, 07:39
  4. Filll Edge QScintilla
    By wirasto in forum Qt Programming
    Replies: 0
    Last Post: 12th January 2011, 07:39
  5. how to color the top edge of a rect
    By dreamer in forum Newbie
    Replies: 4
    Last Post: 15th May 2008, 14:15

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.