Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT display question??
Forum Updated to NodeBB v4.3 + New Features

QT display question??

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ironmantis7x
    wrote on last edited by
    #1

    Hey all!
    I have a question ---
    does the append function automatically put a newline on the end?
    If so -- how do I make this not happen? OR ... is there another way to append text to the screen where the cursor leaves off without adding a new line?

    ironmantis7x

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      What widget are you talking about? QTextEdit?

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ironmantis7x
        wrote on last edited by
        #3

        [quote author="DerManu" date="1340573166"]What widget are you talking about? QTextEdit?[/quote]

        Yes -- it is a QTextEdit widget

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raaghuu
          wrote on last edited by
          #4

          don't know about append()...but you can achieve what you want by this:
          @
          QTextCursor *cursor=myTextEdit->textCursor();
          cursor->insertText(stringToBeInserted);
          //...or cursor->insertText(stringToBeInserted,charFormatToBeUsed);
          @

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved