blambright / qstylizer

Qt stylesheet generation utility for PyQt/PySide
MIT License
57 stars 8 forks source link

Question: Merging stylesheets #4

Closed hhslepicka closed 4 years ago

hhslepicka commented 4 years ago

Is there a utility at the library to merge Stylesheet objects?

hhslepicka commented 4 years ago

Here is a gist of my attempt to that... https://gist.github.com/hhslepicka/e6a5e452a14d7be77e9cb4b8831ba1a0 What is weird is that after updating the style 1 with style 2, the property works fine but toString reports a wrong value.

blambright commented 4 years ago

I have a fix for this. Just need to test it a little more. If all goes well I can release it tomorrow

hhslepicka commented 4 years ago

Thanks @blambright

hhslepicka commented 4 years ago

also, I have many custom widgets and I reference them at my stylesheet but at the Stylesheet object I can only see the regular QWidgets accessible via dot. Is that expected? (It is not a big deal for me)

blambright commented 4 years ago

Ah yeah, that's expected. I use descriptors to get a list accessible via the dot. might be possible to get a custom widget to show up in there but i'm not sure

hhslepicka commented 4 years ago

@blambright for now that is not a big deal... thanks for the fast response! 👍

blambright commented 4 years ago

This was released in version 0.1.9