Important: Please read the Qt Code of Conduct -

Problem with styleSheet spacing parameter

  • Hello,
    I've created a form with a QToolbar, using a styleSheet in which I specified:
    spacing: 10px;
    When I look to the preview, I can see the spacing between my icons of the toolbar.
    But, after, I transform the .ui file in .py file with the pyuic4 command (in Windows 7), and then the spacing has disappeared ...
    Can you explain to me what is the problem ?
    P.S: if I use the background-color parameter, it works well. It's just the spacing parameter that doesn't work in python.