title: Changing the QWidgetAction style in Qt/C++
body: <p>I am having troubles with customizing menu items with the class QWidgetAction. I create my own QWidget and set it as the default widget of the QWidgetAction. Then I add the QWidgetAction to the Menu:</p>
  
  <pre><code>QMenu menu = new QMenu(this);
  QCustomWidget* widget = new QCustomWdiget(this);  // inherits from QWidget
  QCustomAction* action = new QCustomAction(this);  // Inherits from QWidgetAction
  action-&gt;setDefaultWidget(widget);
  menu-&gt;addAction(action);
  </code></pre>
  
  <p>The custom action is added to the Menu but the normal functions such as navigating with the arrows, focusing the elements on hover etc. are not available. I just get a widget that does not inherit the behaviour of a normal menu item. I tried to set the sytlesheet of my customwidget. but setting the same colors, background gradients, borders, font type, font size etc of the normal action is too much work and unaccurate. Is there any way to inherit the style and/or behaviour of the standard action item?</p>