title: How to set an item in a QListWidget as initially highlighted?
body: <p>I am using QT 5.2 and Have a QListWidget witch displays a list of Strings and I want the first item (at 0) to be initially set to be highlighted. I tried the following:</p>
  
  <pre><code>mUi-&gt;listWidget-&gt;setCurrentRow(0);
      mUi-&gt;listWidget-&gt;setCurrentItem(mUi-&gt;listWidget-&gt;item(0),QItemSelectionModel::Select);
      mUi-&gt;listWidget-&gt;currentItem()-&gt;setSelected(true);
      mUi-&gt;listWidget-&gt;selectionModel()-&gt;select(mUi-&gt;listWidget-&gt;model()-&gt;index(0,0, QModelIndex()),QItemSelectionModel::Select); 
  </code></pre>
  
  <p>Even if the if the item is selected it is not highlighted. If ofcourse I navigate to the item using mouse (click) or keyboard (tab key) it is highlighted but I want it to be highlighted initially without using mouse or keyboard. How to do it? Thanks in advance.</p>