Results 1 to 2 of 2

Thread: Qwt Plot title word wrap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt Plot title word wrap

    How to let a long title to split in multiple lines in a qwtPlot?
    It seem that putting a rich text in the QwtText does not work.
    Regards

  2. #2
    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: Qwt Plot title word wrap

    Qt Code:
    1. QwtText title("...");
    2. title.setRenderFlags(title.renderFlags() | Qt::TextWordWrap);
    3. plot->setTitle(title);
    To copy to clipboard, switch view to plain text mode 
    HTH,
    Uwe

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

    giusepped (1st July 2010)

Similar Threads

  1. word wrap
    By deeee in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2010, 19:55
  2. KTitleWidget & word wrap
    By miraks in forum KDE Forum
    Replies: 3
    Last Post: 29th March 2009, 23:24
  3. Word wrap of QLabel
    By jimfan in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2008, 04:49
  4. Word wrap in QListView
    By jiveaxe in forum Qt Programming
    Replies: 33
    Last Post: 1st September 2007, 21:06
  5. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13

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.