Skip to content
Advertisement

PyQt5 window comes up empty

I’m trying to build a simple PyQt5 application . I have so far created a couple of widgets and have added them to my layout . Unfortunately my Window is not showing the lables or the pushbutton which I have created .

JavaScript

enter image description here

Advertisement

Answer

The problem is caused because the layout associated with the widgets is not associated with the window. A possible solution is to add layout group_layout to layout main_layout:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement