This seems something that should be very simple, but for whatever resason I've been looking for a solution for hours now.
The buttons are on a grid layout. Grid layouts right side ends where right buttons end. When I resize the window at runtime I want buttons to scale down with the window. Instead buttons stay the way they are and I get this:
I have found many examples with c++, but nothing that works with PyQt.