Results 1 to 7 of 7

Thread: invTransform not working

Hybrid View

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

    Default Re: invTransform not working

    invTransform maps from widget to scale coordinates and a value of 3 is close to the beginning on an interval that is about [0, width() ]. So no surprise, that you are close to the lower bound.

    Uwe

  2. #2
    Join Date
    Jun 2015
    Posts
    4

    Default Re: invTransform not working

    OK. And how can I get the right return value?
    I need to find out what's the y value to a corresponding x value...

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

    Default Re: invTransform not working

    Quote Originally Posted by ppp View Post
    OK. And how can I get the right return value?
    I need to find out what's the y value to a corresponding x value...
    By recalling what you have learned in school - this is basic maths completely unrelated to Qwt ( f.e see QLineF::pointAt() if you don't know how to calculate a point on a line ).
    You could also have a look at the curvetracker example, what does something similar.

    Uwe

  4. #4
    Join Date
    Jun 2015
    Posts
    4

    Default Re: invTransform not working

    I fixed my problem with the idea like in the curvetracker example without invTransform.
    Thank you.

Similar Threads

  1. Replies: 2
    Last Post: 24th April 2015, 15:47
  2. Replies: 7
    Last Post: 24th September 2012, 07:17
  3. Working with map
    By naptizaN in forum Newbie
    Replies: 4
    Last Post: 28th August 2012, 12:57
  4. MVC example not working
    By yyiu002 in forum Newbie
    Replies: 1
    Last Post: 30th June 2010, 00:07
  5. Mac OS X UI not working
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2006, 01:02

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
  •  
Qt is a trademark of The Qt Company.