Thx, passing the QTextBrowser pointer to the function directly let me modify it in the function.