Can somebody tell me how I can position the centralwidget in the center of the mainwindow. I have a QTextEdit as a centralWidget and I want it always to be in the middle of the window.