cnguyen
Posts: 12
Joined: Thu Mar 27, 2014 4:18 pm

Changing needle color in pyqt

Wed Oct 08, 2014 3:57 pm

Anyone know how to change the needle of a QDial in PyQt? I am lost.

User avatar
paddyg
Posts: 2591
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: Changing needle color in pyqt

Wed Oct 08, 2014 9:47 pm

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.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

cnguyen
Posts: 12
Joined: Thu Mar 27, 2014 4:18 pm

Re: Changing needle color in pyqt

Thu Oct 09, 2014 7:11 pm

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)

Return to “Python”