title: ComboBox of CheckBoxes?
body: <p>I am trying to make the items in a <code>ComboBox</code> checkable. I tried this:</p>
  
  <p><a href="http://web.archive.org/web/20180816153248/http://programmingexamples.net/wiki/Qt/ModelView/ComboBoxOfCheckBoxes" rel="noreferrer">http://programmingexamples.net/wiki/Qt/ModelView/ComboBoxOfCheckBoxes</a></p>
  
  <p>where I subclassed <code>QStandardItemModel</code> and re-implemented the <code>flags()</code> function to make the items checkable. Then I added this model to the <code>ComboBox</code>. Unfortunately, a checkbox does not appear with the items. Can anyone see where I have gone wrong?</p>