I am writing PySide tools that run within other 3rd party applications. The same tool will run in multiple applications and should be styled consistently across these. The problem I have is, these applications are sometimes using QT themselves and have their own styling, using presumably QPalette. When my tools parent to the main application they take on the main applications styling.
So I tried to solve this by using my own QPalette and setting my tools main window\widget to use it, however this doesn't have any effect on the widgets children and they still assume the styling from the main application (not sure if this is correct behaviour).
So I started using a stylesheet to customise the whole look, and largely this works. However it is still not consistent across applications. So either I am not overriding enough of the style sheet parameters or there are some things I cannot fix using the style sheet alone. Example of same style sheet in Nuke and 3ds Max
The very basic stylesheet I used in the test:
QWidget {
margin: 0px;
padding: 0px;
spacing: 0px;
color:white;
}
My Concise Questions are:
- Is it possible to completely override the appearance given by the QPalette using stylesheet alone?
- If it is and its relevant here, what could I be missing, the spacing\size are different. Both windows are at their minimum size. Other than margin and padding, I can't think what would be effecting it.
note: I know I haven't overwritten the QGroupbox style sheet, and even doing so doesn't produce the same result. I have also tried using em, px and ex. PySide version is 1.0.9 in nuke and 1.2.2 in max, if this makes a difference, and I guess it probably could. Thanks