title: How to change the standard items selection QlistView
body: <p>i have QListView I assigned him my modeland delegate in which I redefined the method <code>paint(..)</code>:</p>
  
  <pre><code>void PlainDelegate::paint(QPainter *painter, const QStyleOptionViewItem &amp;option, const QModelIndex &amp;index) const
  {
      QRect rect = option.rect;
      QLinearGradient gradient(0,0,rect.width(),rect.height());
  
      if (option.state &amp; QStyle::State_Selected) 
      {
       gradient.setColorAt(1,Qt::black); //not work
       }
  
      else if(option.state &amp; QStyle::State_MouseOver&amp;&amp; !isEditorOpen)
      {
  
         //set gradient
      }
      else
      {
         //set gradient
      }
  
      painter-&gt;fillRect(option.rect, gradient);
      painter-&gt;setPen(Qt::NoPen);
      painter-&gt;setBrush(gradient);
      painter-&gt;drawRect(rect);
  
      QStyledItemDelegate::paint(painter,option,index);
  }
  </code></pre>
  
  <p>it works like that
  <a href="https://i.stack.imgur.com/dv7D9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dv7D9.png" alt="enter image description here"></a>
  As you can see, the elements are overlap by a standard blue window.
  How to remove this window?</p>