Results 1 to 9 of 9

Thread: How to add a new word to QTextEdit with "append"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default How to add a new word to QTextEdit with "append"

    Hello,

    How can i append a line or word in QTextEdit with append(or another way) without making a new paragraph.I mean;
    let's say in QTextEdit we have "Hello":

    Hello

    I wanna add "world":

    Qt Code:
    1. textEdit->append("world")
    To copy to clipboard, switch view to plain text mode 

    will give the result:

    Hello
    world
    but i want:

    Hello world
    Last edited by jpn; 3rd January 2008 at 13:36. Reason: reformatted to look better

Similar Threads

  1. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 14:36
  2. QTextEdit API questions (plain text)
    By Gaspar in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2006, 06:03

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.