How to reduce boundary space (horizontal/vertical) in QGroupBox?

The button are added in a horizontal layout and then layout has been set for GroupBox.
Qt Code:
  1. self.horizontalGroupBox.setLayout(layout)
To copy to clipboard, switch view to plain text mode 

This is also relevant for QFrame. It also takes some extra space as visible in the image.