It it possible to make a subclass of QTextBrowser that automatically scrolls to the bottom whenever it was scrolled to the bottom when text was added?

Also, is it possible to make it stay scrolled to the same place in the text when resized?