droneone
11th December 2012, 18:12
I had to create a custom-skinned QDial (with custom dial and needle images) recently, and I couldn't find any complete examples of doing it. While it isn't the hardest thing in the world, I thought I'd post a complete example of a class to do this.
This class also allows the QDial to be customized via Qt Style Sheets, and works well in Qt Designer (when a QDial widget is promoted to this class). This class has some limitations, but should be a good starting point for anyone who wants to do the same.
The complete class is posted here: Customized QDial with QSS Support (http://dronecolony.com/2012/12/11/customized-qdial-with-qss-support/)
Hope this helps anyone working on the same.
This class also allows the QDial to be customized via Qt Style Sheets, and works well in Qt Designer (when a QDial widget is promoted to this class). This class has some limitations, but should be a good starting point for anyone who wants to do the same.
The complete class is posted here: Customized QDial with QSS Support (http://dronecolony.com/2012/12/11/customized-qdial-with-qss-support/)
Hope this helps anyone working on the same.