Results 1 to 9 of 9

Thread: textBrowser->setSource() end-of-line

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    9

    Default Re: textBrowser->setSource() end-of-line

    Quote Originally Posted by high_flyer View Post
    but you said:

    So how/where did you try to set EOL?
    In my text editor (where I created info.txt) I have the option of setting end-of-line to DOS format (CR-LF) or Unix format (LF). I've tried saving the file with each format, and in both cases QTextBrowser just concatenates all the lines in the display.


    Added after 1 56 minutes:


    Quote Originally Posted by high_flyer View Post
    but you said:

    So how/where did you try to set EOL?
    I have now tried converting my text file to rich text (by saving it as .rtf in Word Pad). Now EOL is displayed as \par, with the same concatenation. At the head of the displayed text I see what is presumably the formating info for the rich text:
    {\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}} {\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang1033\f0\fs22

    I'm wondering if QTextBrowser was designed just for html, but the docs say:
    "The QTextBrowser class provides a rich text browser with hypertext navigation."
    Last edited by gib; 21st April 2011 at 01:44.

Similar Threads

  1. Time in textBrowser
    By NewLegend in forum Qt Programming
    Replies: 13
    Last Post: 12th October 2010, 04:37
  2. space in textBrowser
    By NewLegend in forum Qt Programming
    Replies: 4
    Last Post: 3rd September 2010, 19:04
  3. New Line in textBrowser
    By NewLegend in forum Qt Programming
    Replies: 4
    Last Post: 12th August 2010, 05:29
  4. QTextBrowser setSource (Qt 4.2.2)
    By manojmka in forum Qt Programming
    Replies: 0
    Last Post: 10th January 2008, 07:00
  5. Textbrowser issue
    By deekayt in forum Qt Programming
    Replies: 1
    Last Post: 29th October 2006, 07:51

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.