I am trying to put some spinboxes,line edits in a layout. But the size extends more than the neccesity. Below is the figure
It's easy. It can be done by giving the stretching factor. That means you have to initiate the value when you use the functions
addWidget(widget,stretchfactor); or addLayout(layout,stretchfactor);