title: What is the correct way to customize Icon and Text position of items in a QListView?
body: <p>I'm using C++ and Qt's (4.6) model/view framework and wondering what is the correct way to change the display of items in a <code>QListView</code> or a class derived from <code>QListView</code> from:</p>
  
  <p><img src="https://i.stack.imgur.com/BxJsR.png" alt="alt text"></p>
  
  <p>to:</p>
  
  <p><img src="https://i.stack.imgur.com/fiXcx.png" alt="alt text"></p>
  
  <p>I'm not concerned about the sort order or <code>Flow</code>, I'm interested in the best way to correctly position the text to the right of the icon.</p>
  
  <p>If this can only be done by writing a custom <code>QStyledItemDelegate</code> that's totally fine, I want to rule out whether this is the correct approach or whether it's best to look at setLayout or similar, example code would help.</p>
  
  <p>The example application I'm looking at is the 'interview' example from qtdemo which amongst other things displays icons and text in a <code>QListView</code>.</p>