×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Location
    Foster City, CA
    Posts
    24

    how to clip line end of multiple line text

    Hi,
    I need to display a long text at small text area, and the last line (bottom line) is sometime displayed incompletely, so I want to stop at the previous line.
    How can I do it?

    I'm using Qt 4.7.3 and QML text element, but if other element works, it is OK.

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: how to clip line end of multiple line text

    are you looking for Text.WordWrap property.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Location
    Foster City, CA
    Posts
    24

    Re: how to clip line end of multiple line text

    yes, word wrap is OK, but I need to clip bottom line (not right side).

    btw, I just use TextEdit element and apply string bit by bit and check paintedHeight.
    If the value exceeds the target area, clip the text string.
    It works properly, but I think it's a bit slow, so I'm wondering if I can solve this by other method.

Similar Threads

  1. How to read line by line from rich text editor
    By giang1194 in forum Symbian
    Replies: 4
    Last Post: 2011-03-25, 23:04
  2. Replies: 5
    Last Post: 2008-09-23, 09:39
  3. How to judge whether the cursor is at the end of a line or not?
    By curiouswalker in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-07-06, 17:30
  4. How to read text file line by line?
    By aluzi in forum Symbian
    Replies: 12
    Last Post: 2008-03-25, 13:06
  5. Replies: 1
    Last Post: 2006-10-21, 05:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×