title: how to set style of menu::item::selected in Qt?
body: <p>I want to set color of the border of a menu item when user set focus on it. First - item::selected, is this right property? And if yes, how to set this? Do i use Designer or do it manually in C++ code?</p>
  
  <pre><code>Customizing QMenu Individual items of a QMenu are styled using the 'item' subcontrol as follows:  
  
           QMenu {
               background-color: #ABABAB; /* sets background of the menu */
               border: 1px solid black;  }
  
           QMenu::item {
               /* sets background of menu item. set this to something non-transparent
                   if you want menu color and menu item color to be different */
               background-color: transparent;  }
  
           QMenu::item:selected { /* when user selects item using mouse or keyboard */
               background-color: #654321;  }
  </code></pre>
  
  <p>OK, but where to put this in Qt 5.0? Do I use this in <strong>Designer</strong> in <strong>stylesheet</strong> property? I guess NO. In my .cpp files? I can do <code>setStyleSheet</code> on my menu but how to specify ::item::selected?</p>
  
  <pre><code>#include "MainWindow.h"
  #include &lt;QtWidgets/QWidget&gt;
  #include &lt;QtWidgets/QMessageBox&gt;
  cf16tradingclient_1::cf16tradingclient_1(){
      widget.setupUi(this);
      widget.menuMarket-&gt;setStyleSheet(?????????) // I want item::selected
  }
  </code></pre>