Given a QGroupBox, calling its member function, “setEnabled(false)” will grey out and disable its contents.
However, how do I grey out the title of the box? Presumably there’s some workaround involving styles that I could use if there isn’t a simple method somewhere. If so, what is the easiest?
What you need to set is the
colorproperty of thetitlesub-control:EDIT
You could also achieve the same effect using
QPalette, without the use of stylesheets