Results 1 to 2 of 2

Thread: How to hide the external legend

  1. #1
    Join Date
    Aug 2017
    Posts
    9
    Thanks
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default How to hide the external legend

    Hi,

    I created external legend without calling insertLegend() in my project which is based on Qwt 6.1.

    I know I can use insertLegend(NULL) to delete the legend whose position is Top/Bottom/Left/Right. But it didn't work for hide the externl legend that I created.

    I created my external legend by creating a new QwtLegend().

    Does anyone know how to hide this kind of the external legend ?

    Thanks!

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

    Default Re: How to hide the external legend

    Like any other widget: using QWidget::setVisible.

    Uwe

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

    lin3398032 (10th May 2018)

Similar Threads

  1. Replies: 1
    Last Post: 25th April 2018, 16:42
  2. qchart hide legend for part of series
    By marrierius in forum Newbie
    Replies: 2
    Last Post: 14th March 2017, 13:40
  3. Replies: 1
    Last Post: 17th April 2014, 06:11
  4. Replies: 2
    Last Post: 23rd June 2012, 18:12
  5. QProcess - How show/hide external application
    By markvi in forum Qt Programming
    Replies: 1
    Last Post: 7th January 2010, 14:42

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.