Results 1 to 6 of 6

Thread: setAxisScale become invalid to xTop Axis?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    16
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: setAxisScale become invalid to xTop Axis?

    thank you very much,that's the answer!
    Quote Originally Posted by Uwe View Post
    The coordinate systems spanned by the 4 axes are always present - independent from the visibility of an axis. A plot item is always related to one x/y combination, different plot items on the same plot might be related to different combinations ( see the bode example, where you have 2 y axes ). In your code the curve is related to the invisible xBottom scale - because xBottom/yleft is the default setting.

    The following line is missing:

    Qt Code:
    1. curve->setXAxis( QwtPlot::xTop ):
    To copy to clipboard, switch view to plain text mode 
    Uwe

  2. #2
    Join Date
    Dec 2013
    Location
    Toronto, Canada
    Posts
    62
    Thanked 16 Times in 15 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: setAxisScale become invalid to xTop Axis?

    Yes

    Thanks

Similar Threads

  1. invalid QModelIndex
    By Talei in forum Newbie
    Replies: 1
    Last Post: 18th January 2010, 20:21
  2. setAxisScale(1) doesn't do anything
    By rakkar in forum Qwt
    Replies: 1
    Last Post: 19th September 2009, 10:42
  3. SetAxisScale problem
    By emrares in forum Qwt
    Replies: 2
    Last Post: 12th August 2009, 17:45
  4. QDateTime Invalid
    By FreePascal in forum Newbie
    Replies: 2
    Last Post: 7th June 2009, 19:35
  5. intersectingStaticSet: row 'x' was invalid
    By Kumosan in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2007, 15:41

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.