Results 1 to 3 of 3

Thread: How to focus line in QwtPlotMarker/QwtPlotScaleItem/QwtPlotPicker

  1. #1
    Join Date
    Jun 2015
    Posts
    71
    Thanks
    18
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question How to focus line in QwtPlotMarker/QwtPlotScaleItem/QwtPlotPicker

    Hi All,

    I'm trying to draw a line using QwtPlotMarker or by QwtPlotScaleItem.
    And I'm using QwtPlotPicker to select the line and I got success, but it doesn't focus when I click on it.

    Now the question is, how I can set focus on that line either create by QwtPlotMarker or by QwtPlotScaleItem when I clicked on it.

    I can set width of that line, but looking for some focus functionality if it is their.

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,162
    Thanked 829 Times in 778 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to focus line in QwtPlotMarker/QwtPlotScaleItem/QwtPlotPicker

    Not sure, what you mean by focusing - guess you are talking about some sort of highlighting ?
    Then you can simply derive from QwtPlotMarker and add a selected state, where you draw the marker with a different QPen.

    Uwe

  3. #3
    Join Date
    Jun 2015
    Posts
    71
    Thanks
    18
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to focus line in QwtPlotMarker/QwtPlotScaleItem/QwtPlotPicker

    Thanks Uwe

Similar Threads

  1. Replies: 0
    Last Post: 22nd September 2016, 19:17
  2. Replies: 2
    Last Post: 20th July 2015, 06:14
  3. QwtPlotMarker QwtPlotPicker
    By bss in forum Qwt
    Replies: 1
    Last Post: 15th June 2011, 12:55
  4. Is there focus event for line edit?
    By vjsharma_30 in forum Qt Programming
    Replies: 6
    Last Post: 19th February 2010, 20:12
  5. line edit focus
    By addu in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2009, 15:39

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.