Quote Originally Posted by Adam Badura View Post
That way I could set up some styles which I would then query for myself (in item delegate) and use them in painting operation.
Well, you can query whatever you want. The stylesheet is available in the stylesheet property of the widget, its parent, etc. But there is no cascading and no parsing. You have to do everything manually. Of course you can store a stylesheet for each item separately in the model and then parse it and do whatever you want with it.

Now I cannot (for model/view items) - or better to say I'm very limited in my options. If I would like to use border-image for fancier (stretched) background in normal, alternate and selected modes then its all fine. But if my items have another "mode" like for example "erroneous" with red background then how should I proceed? Since as for now I can see just one option: throw away the stylesheet and embed everything in item delegate.
I already told you that implementing border-image in C++ is 9 lines of code (or less).

Actually this is what I was advised to do by my co-workers. But I found it hard to believe that it cannot be done with stylesheets as main "style" source.
If all you want from style sheets is image-border, then drop the stylesheet and paint the image in the delegate the way you want it.