Results 1 to 2 of 2

Thread: Overlaoding trackerText to show dates

  1. #1
    Join Date
    Oct 2007
    Location
    Warminster, England
    Posts
    31
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Overlaoding trackerText to show dates

    I have been searching though the Qwt examples for an example of overloading the QwtPlotPicker::trackerText function without any luck.
    I assume I need to create my own picker which is a sub class of QwtPlotPicker, then replace the trackerText function with my own. I need to convert the X- axis vales back from uint's to QDates
    thanks.

  2. #2
    Join Date
    Sep 2010
    Posts
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Overlaoding trackerText to show dates

    you can in your sub-class overload:
    Qt Code:
    1. virtual QwtText trackerText(QPoint const &pos) const;
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 30th July 2010, 07:23
  2. How to capture right clicked dates in a QCalendarWidget?
    By balazsbela in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2010, 13:36
  3. Adding 2 Dates
    By bwindorski in forum Newbie
    Replies: 2
    Last Post: 5th December 2009, 06:15
  4. Replies: 1
    Last Post: 25th July 2008, 08:38
  5. Replies: 2
    Last Post: 19th April 2006, 19:11

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.