title: QLabel text not selectble even when i set Qt::TextSelectableByMouse inside QStyledItemDelegate
body: <p>I have a simple item delegate of <code>QStyledItemDelegate</code> type and inside its paint method I have this code. It renders fine, but the main thing here is that I would like the text to be selectable for copy, and this doesn't work.</p>
  
  <pre><code>void ItemDelegate::paintBody( QPainter* painter,
                                const QStyleOptionViewItem&amp; option,
                                const QModelIndex&amp; index ) const
  {
      painter-&gt;save();                                    
  
      QLabel *l = new QLabel();
      l-&gt;setTextFormat(Qt::RichText);
      l-&gt;setTextInteractionFlags(Qt::TextSelectableByMouse);
      l-&gt;setGeometry(option.rect);
      l-&gt;setText("This is test");
      l-&gt;setStyleSheet("QLabel { background-color : transparent; }");
      l-&gt;render(painter, option.rect.topLeft());
  
      painter-&gt;restore();   
  }
  </code></pre>