Results 1 to 12 of 12

Thread: QwtPlot - Changing Title fonts

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPlot - Changing Title fonts

    QwtPlot::axisTitle() is a getter and it doesn't make much sense to assign something to an object, that is returned by value.

    Better do something like this:

    Qt Code:
    1. QwtText title("BlaBla");
    2. title.setFont(QFont("Helvetica", 20));
    3. plot->setAxisTitle(QwtPlot::yLeft, title);
    To copy to clipboard, switch view to plain text mode 

    Uwe

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

    Momergil (10th November 2013)

Similar Threads

  1. Replies: 2
    Last Post: 12th April 2007, 11:11

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
  •  
Qt is a trademark of The Qt Company.