I am using a QWidgetAction to create a QMenu "item" that has a QLabel and a QLineEdit. These are added to a QHBoxLayout which is added to a QWidget which is set as the default in the QWidgetAction.
The end result is that everything works, except the QLabel is displayed with grayed out text, as if disabled. Calling setEnabled(true) on everything mentioned above has no effect. The only thing that seems to help is forcing the text color of the QLabel using a stylesheet or rich text, but it's impossible to match the color of the other, regular, menu items. What am I missing?