I am learning PyQt from this site. The tutorial is building a widget that colours a square.
In this, they are using CSS to colour the square, rather than give it some sort of concrete property of colour. Why is this? Is there another way to do this without CSS or is this the preferred method? It seems awfully strange..