I think you should first set the layout for the widget and then change the margins and not the other way round.
I think you should first set the layout for the widget and then change the margins and not the other way round.
QGridLayout has two functions that you shoulf use:
setMargin( int ) // you should use 0
setSpacing( int ) // 0
This is the solution of your problem.![]()
Bookmarks