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:

Qt Code:
  1. layout->setSpacing( spacing );
  2. layout->setMargin( margin );
To copy to clipboard, switch view to plain text mode 

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.