Results 1 to 2 of 2

Thread: Word wrap of QLabel

  1. #1
    Join Date
    Dec 2007
    Posts
    15
    Qt products
    Qt4 Qt/Embedded

    Question Word wrap of QLabel

    Hi All,

    I am just wondering is there a simple way to do character wrap if word wrap is not applicable? For example, if there's a very long word and needs to wrap around how do I set it to wrap on characters.

    Thanks,
    Last edited by jimfan; 16th February 2008 at 00:23.

  2. #2
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Word wrap of QLabel

    Quote Originally Posted by jimfan View Post
    Hi All,

    I am just wondering is there a simple way to do character wrap if word wrap is not applicable? For example, if there's a very long word and needs to wrap around how do I set it to wrap on characters.

    Thanks,
    See this
    http://doc.trolltech.com/4.3/qtexted...dWrapMode-prop
    and
    http://doc.trolltech.com/4.3/qlabel.html#wordWrap-prop
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

Similar Threads

  1. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  2. Qt layouting + QLabel's word wrap = bug?
    By dimuz in forum Qt Programming
    Replies: 6
    Last Post: 5th September 2007, 11:15
  3. Word wrap in QListView
    By jiveaxe in forum Qt Programming
    Replies: 33
    Last Post: 1st September 2007, 21:06
  4. QListView word wrap
    By serega in forum Qt Programming
    Replies: 17
    Last Post: 30th August 2007, 03:13
  5. Word wrapping in a QTableWidget cell
    By jcooperddtd in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 03:57

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.