Results 1 to 3 of 3

Thread: linebreaks QGraphicsTextItem

  1. #1
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default linebreaks QGraphicsTextItem

    Hello,

    QGraphicsTextItem::setWidth(width)

    Is there any way to get linebreaks of text (better text with linebreaks) in QGraphicsTextItem (for reproducing text in other tool)?

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: linebreaks QGraphicsTextItem

    automatic linebreaks (aka wrapping at some width), or manual linebreaks for "\n" in the text?

  3. #3
    Join Date
    Jun 2008
    Posts
    35
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: linebreaks QGraphicsTextItem

    when width was set (QGraphicsTextItem::setWidth(width)), Qt automatically wrapping text into width and makes multiline text.
    How is it possible to get where Qt visible broke line?

    How to limit number of lines in QGraphicsTextItem?
    Last edited by nicolas1; 28th November 2008 at 13:43.

Similar Threads

  1. QValidator for QGraphicsTextItem
    By arjunasd in forum Qt Programming
    Replies: 4
    Last Post: 8th August 2007, 15:34
  2. Problem on set QGraphicsTextItem write protect.
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2007, 20:53
  3. QGraphicsTextItem: handling cursor position change
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 10:42
  4. QGraphicsTextItem size
    By Angelo Moriconi in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2007, 08:34
  5. QGraphicsTextItem - is it a bug there?
    By Tair in forum Qt Programming
    Replies: 5
    Last Post: 18th October 2006, 08:48

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.