Results 1 to 3 of 3

Thread: Drawing border of item in the QwtPlotLegendItem

  1. #1
    Join Date
    Jul 2018
    Posts
    6
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Drawing border of item in the QwtPlotLegendItem

    Hello,

    I am searching how to draw the border of the little square representing a curve or histogram int the QwtPlotLegendItem.
    In the picture below, the histogram with blue pen but with no brush is not represented in the legend ("intensité"). I want a square with blue border ...
    Any idea ?

    Capture.PNG

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

    Default Re: Drawing border of item in the QwtPlotLegendItem

    You can overload QwtPlotItem::legendIcon() for your curves/histograms.

    Uwe

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

    vcloarec (19th March 2019)

  4. #3
    Join Date
    Jul 2018
    Posts
    6
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Drawing border of item in the QwtPlotLegendItem

    Thanks Uwe, perfect !

    I really appreciate your qwt library and your reactivity !

Similar Threads

  1. Drawing a border around an image.
    By owenb11 in forum Newbie
    Replies: 3
    Last Post: 15th April 2016, 15:30
  2. Replies: 1
    Last Post: 23rd March 2015, 08:54
  3. Replies: 0
    Last Post: 25th January 2015, 04:23
  4. QListView item with border 0 still visible
    By Erazem in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 3rd September 2010, 16:16
  5. Replies: 3
    Last Post: 7th November 2006, 08:35

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.