I tried stylesheets with
padding:0px,
text-ident:0px;
margin:0px;
border: none;
And through code, changing the Size Policy to Expanding.
The layout inside the widget which has the label has
QHBoxLayout* lyt = new QHBoxLayout();
setLayout(lyt);
lyt->setContentsMargins(0,0,0,0);
And setting contents margins to 0 in the parent widget too.
The only way i got to make it smaller was setting Fixed size to less of the size. But the text has the word wrap property on, so it can be bigger and i cannot control that.
What should i do?