Results 1 to 2 of 2

Thread: qwtplot title alignment

  1. #1
    Join Date
    Jul 2010
    Posts
    23
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default qwtplot title alignment

    I am trying to set the alignment of my plot title from default of center align to left align,
    Here is the typical way of setting the title:
    QwtText tempTitle;
    ui.qwtPlot->setTitle(tempTitle);

    Newbie question: How can I set the alignment of the plot title?
    Thanks.

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

    Default Re: qwtplot title alignment

    Qt Code:
    1. QwtText tempTitle;
    2. tempTitle.setRenderFlags( Qt::AlignLeft | Qt::AlignVCenter);
    3. ...
    To copy to clipboard, switch view to plain text mode 

    Uwe

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

    ken123 (20th October 2011)

Similar Threads

  1. QwtPlot - Changing Title fonts
    By MrGarbage in forum Qwt
    Replies: 11
    Last Post: 26th April 2012, 09:16
  2. QwtPlot Change Axis Title Alignment
    By deepy in forum Qwt
    Replies: 5
    Last Post: 20th October 2010, 14:40
  3. QGroupBox title alignment
    By binaural in forum Newbie
    Replies: 2
    Last Post: 9th April 2010, 22:56
  4. Window Title Text left alignment issue.
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 3rd March 2010, 15:46
  5. Title Bar Alignment and mainwindow options
    By Krish_ng in forum Qt Programming
    Replies: 6
    Last Post: 16th July 2007, 09:10

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.