Page 1 of 1

Changing needle color in pyqt

Posted: Wed Oct 08, 2014 3:57 pm
by cnguyen
Anyone know how to change the needle of a QDial in PyQt? I am lost.

Re: Changing needle color in pyqt

Posted: Wed Oct 08, 2014 9:47 pm
by paddyg
Is this helpful? It looks to inherit its palette from its parent QWidget but also inherits methods for tweaking it. Or use style sheets but I don't know how or if the needle painting properties specifically can be accessed.

Re: Changing needle color in pyqt

Posted: Thu Oct 09, 2014 7:11 pm
by cnguyen
Thanks. I was looking for something more simple like setSTyleSheet(handle, color=red) or something similar. Don't think there's such a thing though. Guess I gotta look into palette. (noob here)