I have a custom QFrame
like this
//! Widget which displays a audio level meter, indicating the
//! level and peak levels of the window of audio samples most recently analyzed
class BLACKGUI_EXPORT CLevelMeter : public QFrame
{
Q_OBJECT
Q_PROPERTY(QColor lowColor READ getLowColor WRITE setLowColor)
Q_PROPERTY(QColor highColor READ getHighColor WRITE setHighColor)
Q_PROPERTY(QColor peakColor READ getPeakColor WRITE setPeakColor)
I want to set those colors in an qss
stylesheet like this
BlackGui--CLevelMeter {
lowColor: blue;
border: 1px solid grey;
border-radius: 5px;
This does NOT work, any chance to do this?