title: QComboBox - set selected item based on the item's data
body: <p>What would be the best way of selecting an item in a QT combo box out of a predefined list of <code>enum</code> based unique values.</p>
  
  <p>In the past I have become accustomed to .NET's style of selection where the item can be selected by setting the selected property to the item's value you wish to select:</p>
  
  <pre><code>cboExample.SelectedValue = 2;
  </code></pre>
  
  <p>Is there anyway to do this with QT based on the item's data, if the data is a C++ enumeration?</p>