Qt World Summit: Register Today!

QT display question??

  • 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?


  • What widget are you talking about? QTextEdit?

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

    Yes -- it is a QTextEdit widget

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

Log in to reply