Results 1 to 5 of 5

Thread: space in textBrowser

  1. #1
    Join Date
    Jul 2010
    Posts
    71
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default space in textBrowser

    Hello to all

    How do I put a space in output textBrowser ???



  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: space in textBrowser

    Hey
    I also
    like to align
    text
    in a funny
    way!

    What output do you mean? Do you print it? How? What space? Horizontal or vertical?

  3. #3
    Join Date
    Jul 2010
    Posts
    71
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: space in textBrowser

    Quote Originally Posted by Lykurg View Post
    Hey
    I also
    like to align
    text
    in a funny
    way!

    What output do you mean? Do you print it? How? What space? Horizontal or vertical?
    as,
    Qt Code:
    1. ui->textBrowser_8->setPlainText("Sum = " );
    To copy to clipboard, switch view to plain text mode 
    How can put space after Sum = ???

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: space in textBrowser

    There is already a space after Sum = ?

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: space in textBrowser

    Quote Originally Posted by fatjuicymole View Post
    There is already a space after Sum = ?
    If you use HTML (or it renderes as such by QTextBrowser) use   to be able to show more than one space. Otherwise ensure your text is rendered as a plain text: setTextFormat(Qt::PlainText).

Similar Threads

  1. New Line in textBrowser
    By NewLegend in forum Qt Programming
    Replies: 4
    Last Post: 12th August 2010, 05:29
  2. QTableView empty space or too little space.
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 16th October 2009, 16:00
  3. Replies: 1
    Last Post: 26th July 2009, 15:08
  4. Textbrowser issue
    By deekayt in forum Qt Programming
    Replies: 1
    Last Post: 29th October 2006, 07:51
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.