<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="auto">I have a vbox layout which is my main layout. I have set a label to be the sole widget in my layout. I have not specified anything else except <div dir="auto">self.vbox.addWidget(label)</div><div dir="auto">The problem is when the window is first run the label appears at the top most corner but then changes position to the middle of the page. The change happens when I try to resize the window. Why is this happening and how to stop it? I even tried using a</div><div dir="auto">label.setGeometry(10, 10, 200, 200)</div><div dir="auto">The result is still the same.</div></div>