Results 1 to 2 of 2

Thread: Curve without a title

  1. #1
    Join Date
    Jan 2012
    Posts
    10
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Curve without a title

    Hi,

    Is it possible to draw a draw a curve without a title. In the following code i specified title as an empty string but the legend for the curve still appears. If i leave out the title definition, a default value is used.

    Qt Code:
    1. QwtText ctitle("");
    2. ctitle.setFont(QFont("Helvetica", 14));
    3. curve->setTitle(ctitle);
    To copy to clipboard, switch view to plain text mode 

    Cheers

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

    Default Re: Curve without a title

    Qt Code:
    1. curve->setItemAttribute( QwtPlotItem::Legend, false );
    To copy to clipboard, switch view to plain text mode 
    Uwe

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

    rajil.s (5th February 2012)

Similar Threads

  1. Replies: 1
    Last Post: 31st October 2011, 14:23
  2. Replies: 2
    Last Post: 23rd August 2011, 12:23
  3. Replies: 4
    Last Post: 29th April 2010, 06:11
  4. Replies: 1
    Last Post: 22nd January 2010, 14:34
  5. Get a smooth curve
    By beekeep in forum Qwt
    Replies: 2
    Last Post: 7th January 2010, 17:49

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.