Results 1 to 10 of 10

Thread: Need a null char for line ends for my TextEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Need a null char for line ends for my TextEdit

    Or you can show all lines and remove the last newline after exiting the loop.
    Or you can insert the first line without a newline and then begin each next line with a newline.
    Or you can substract one from num_lines_to_show, run a "for" loop against that count adding a newline after each line and then add the last line after you exit the loop.
    Or possibly use any different approach that surely exist.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Need a null char for line ends for my TextEdit

    Yes, I only was persisted in trying the use of null char, but it seems to be impossible..
    Thanks any way.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Need a null char for line ends for my TextEdit

    I don't see how a null character would have helped you here.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTreeView find out when the drag operation ends
    By mentalmushroom in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2011, 07:37
  2. Replies: 4
    Last Post: 30th September 2011, 14:00
  3. Insert line to textedit
    By wirasto in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2009, 15:59
  4. Converting QString to char* in onl line
    By hubbobubbo in forum Qt Programming
    Replies: 10
    Last Post: 11th December 2009, 11:45
  5. How can I paint a line in TextEdit on QT-4.3.2?
    By cslijy in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2007, 08:08

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.