Results 1 to 2 of 2

Thread: Show text on mouse hover on plot

  1. #1
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Show text on mouse hover on plot

    I want to show text message on mouse hover over plot area like bode plot example shows x and y values.
    What i am doing now...
    ...
    connect(d_picker, SIGNAL(moved(const QPoint &)),
    SLOT(moved(const QPoint &)));
    ....
    void MainWindow::moved(const QPoint &pos)
    {
    //? do what in this implementation??//
    }

    by default i get to see x and y values.. However i want to show custom text f.e. YAxis=yvalue, XAXIS=xvalue

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Show text on mouse hover on plot

    subclass QwtPlotPicker and override the "PickerText"-method.

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

    pkj (2nd March 2011)

Similar Threads

  1. Get keyboard focus on mouse over (hover to activate)
    By mortoray in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2011, 20:23
  2. Replies: 5
    Last Post: 22nd October 2010, 16:34
  3. Hover on mouse over while dragging
    By mooreaa in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2010, 11:31
  4. QSystemTrayIcon capture mouse hover event
    By alan in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2009, 20:42
  5. segmentation fault on mouse hover
    By elessaar in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2008, 13:51

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.