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?

    ironmantis7x



  • 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();
    cursor->insertText(stringToBeInserted);
    //...or cursor->insertText(stringToBeInserted,charFormatToBeUsed);
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.