Sorry... life sometimes sucks.
Web CSS works in a different way that widget CSS. The latter is an artificial QStyle subclass so when you enable stylesheets for a widget, its style changes to the artificial one so all things drawn customly by your "main" style are gone and you're left with a "naked" widget that you need to "dress". Sometimes the bare stylesheet style output is close to the one provided by the real style and sometimes it is not.I did some web programming and I loved the idea of CSS taking away the presentation information from the code.
It's not that easy. Qt4 will definitely not do that. You would have to have some kinds of hooks for stylesheets in all possible style implementations and the API itself. So essentially stylesheets would have to be drawn by the true style (which is impossible for the "system" styles such as Aqua, WindowsXP and similar) which defeats the purpose of stylesheets.I hope Qt fixes that issue within a future! Or is there a reason for that?
Bookmarks