PDA

View Full Version : Setting layout margin and spacing globally



aarpon
7th April 2009, 13:23
Dear all,

our application contains quite a few widgets, many of which with their own layouts. I would like to set their margin and spacing to a smaller value than the default one. I obviously could go over all of them and say:


layout->setSpacing( spacing );
layout->setMargin( margin );

but I would prefer some more elegant solution. Is there a way to set these two values globally, e.g. to the style? Still, it should work independently from the actual style used, since out application works on Windows, Linux and MacOS X.

Thanks a lot for any help.