Results 1 to 2 of 2

Thread: how to show coordinate xy in plot window

  1. #1
    Join Date
    Jul 2009
    Location
    São Paulo - Brasil
    Posts
    20
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default how to show coordinate xy in plot window

    Hi everybody, I saw the bode example and I liked of the zoom function. I have already implemented in my work.

    When I press the mouse button I can see xy coordinates in the screen, I would like to aways see this coordinates, even I dont press the mouse, I would like the the xy coordinate be together with the mouse pointer when I pass throught the screen like zoom.

    Someone knows how to do it?

    thanks in advanced.

    bye bye

  2. #2
    Join Date
    May 2008
    Posts
    25
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to show coordinate xy in plot window

    Define QwtPicker and have the QwtPlotPicker always on, this will result in the x and y data being shown for the location of the mouse.

    pPicker = new plotPicker(QwtPlot::xBottom,QwtPlot::yLeft,QwtPick er::RectSelection | QwtPicker::ClickSelection, QwtPlotPicker::NoRubberBand, QwtPlotPicker::AlwaysOn,pCanvas);

  3. The following user says thank you to cnbp173 for this useful post:

    ProTonS (28th August 2009)

Similar Threads

  1. Replies: 2
    Last Post: 9th August 2009, 22:08
  2. How to show a wizard before the main window?
    By dcopeto in forum Qt Programming
    Replies: 3
    Last Post: 27th March 2009, 17:10
  3. qtopia window decoration cannot show caption
    By qtopiahooo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 13th March 2007, 08:09
  4. window decoration cannot show caption
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 31st January 2007, 08:17
  5. WYSIWYG html, Window show png icon mac no!
    By patrik08 in forum Qt Programming
    Replies: 10
    Last Post: 25th May 2006, 12:01

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.