I am trying to solve a problem where, when the scrollbar of the text editor becomes visible, it pushes text around because the scrollbar takes up space. How do I have the scrollbar take up its own space? Or maybe I need to have the scrollbar always be visible.
The text editor’s scroll bar will draw itself inside the editor when it shows, so it may push the text. You could try reducing the width using
TextEditor::setScrollBarThickness() or hiding it completely using
Reducing thickness is not a solution. Hiding is not a solution.
On top of that the viewport is private and inaccessible. I could at least have the scrollbar visible at all times so the text space would be consistent if I could access the viewport.