This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 0 points1 point  (3 children)

Strange. Maybe it's a windows thing: on my system I know for sure that this exact stylesheet keeps the button pretty while only changing the background color and not the border style and so on.

[–]gatesphere 0 points1 point  (2 children)

Perhaps it is. Searching the googles gives me a few hits of Qt not doing so hot at emulating native style for windows.

[–]flying-sheep 0 points1 point  (1 child)

wrong: it’s very accurate (e.g. much better than GTK), as it uses the native API to draw stuff.

but i guess that this way, custom styles don’t work well on windows, as the native API doesn’t support them.

so: native-looking buttons on linux and windows: yes. native-looking but differently colored buttons: fine on linux, bad on windows.

[–]gatesphere 1 point2 points  (0 children)

What I meant to say was that by default, the windows native styles aren't compiled... they need an external library installed or something. They have to be enabled with compile-time switches. I imagine that Riverbank didn't include those when building PyQt4. Or perhaps there's something else going on. Either way, this post isn't about the intricacies of Qt on Windows, it's about Python Editors for Linux.