I have a QMainWindow with the central widget set as a QTextEdit. I want to add in a horizontal spacer on each side so the screen will look more like a microsoft word doc or something where theres the white page in the center and then a border type thing on the sides.

Is there a way to do this?

thanks