캡처.PNG
Why do this happen? I tried to fix the python code manually to remove it, but I can't find it.
캡처.PNG
Why do this happen? I tried to fix the python code manually to remove it, but I can't find it.
Last edited by sodlqnf123; 4th July 2018 at 05:20.
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.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Capture.PNG
It looks like this.
What did I wrong? I have already implemented centralWidget
centralwidget has no layout.
Then do you mean that I have to remove default centralWidget and make another widget that has a specific layout?
No, just add layout to centralWidget. Object centralLayout is not layout for centralWidget.
Bookmarks