Results 1 to 5 of 5

Thread: Hide QwtLegend after inserting it???

  1. #1
    Join Date
    Jun 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Hide QwtLegend after inserting it???

    Hi there...

    I am trying to hide the legend in my plot AFTER the insertion of it.
    I tried the hide() or setVisible() methods but they don't work with the legend!
    Is it somehow possible? Is there a method that helps on that?

    Using Qwt 6.0.1!!!

    Thanks in advance...

  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: Hide QwtLegend after inserting it???

    Qt Code:
    1. plot->insertLegend( NULL );
    To copy to clipboard, switch view to plain text mode 

    HTH,
    Uwe

  3. #3
    Join Date
    Jun 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hide QwtLegend after inserting it???

    Unfortunately it doesn't help Uwe...
    Program can't even start.
    Is there any possibility that this kind of functionality will get implemented in the future???

  4. #4
    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: Hide QwtLegend after inserting it???

    It is implemented - whatever the reason of your crash is, you are the only one who can fix it.

    Uwe

  5. #5
    Join Date
    Jun 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hide QwtLegend after inserting it???

    Correction

    It helps:
    Qt Code:
    1. plot->insertLegend( NULL );
    To copy to clipboard, switch view to plain text mode 
    I probably didn't compile the project clean.

    Thanks for the help...

Similar Threads

  1. Replies: 5
    Last Post: 26th June 2015, 15:00
  2. Qwt 6.1.0 trunk and QwtLegend
    By carhun in forum Qwt
    Replies: 0
    Last Post: 22nd August 2012, 09:13
  3. QwtLegend size
    By baray98 in forum Qwt
    Replies: 3
    Last Post: 11th May 2010, 09:55
  4. QwtLegend size
    By baray98 in forum Qwt
    Replies: 0
    Last Post: 10th May 2010, 05:26
  5. Set Title for QWTLegend...
    By umulingu in forum Qwt
    Replies: 3
    Last Post: 23rd March 2010, 09:28

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.