I want to extend QLCDNumber to show unit (like Deg/Rad/Grad selector in old calculator) along with the number. As I see it in high-level, to be style-independent, one should extend drawing area but restrict QLCDNumber to draw on the extended region. Then paint the required.
Another approach could be to create a compound widget wiht QLCDNumber without a frame and having the compound widget filled the same background color and drawing the additional text outside QLCDNumber.
Yet, another approach is to overload setValue() s.t. the last digit would be empty and then draw units there (or even use QLabel inside).
What is the best way of making things work and be as much style-independent as possible?
Thank you!