View Full Version : Why the bottom of main window covers other widgets?
sodlqnf123
4th July 2018, 05:00
12888
Why do this happen? I tried to fix the python code manually to remove it, but I can't find it.
d_stranz
4th July 2018, 05:55
Is your widget based on QMainWindow? Have you implemented a class based on QWidget containing a layout and your UI and set it as QMainWindow's "centralWidget"?
If your class is not based on QMainWindow but on QWidget or QDialog, have you created a layout for the window with your buttons and line edits laid out inside it?
What I see in your screenshot is what I would expect to see if you were not using a layout or were using it incorrectly.
sodlqnf123
4th July 2018, 08:31
12889
It looks like this.
What did I wrong? I have already implemented centralWidget
Lesiok
4th July 2018, 08:49
centralwidget has no layout.
sodlqnf123
4th July 2018, 09:24
Then do you mean that I have to remove default centralWidget and make another widget that has a specific layout?
Lesiok
4th July 2018, 13:08
No, just add layout to centralWidget. Object centralLayout is not layout for centralWidget.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.