title: Creating a custom item for QComboBox in Pyside
body: <p>I want to create an item for my <code>QComboBox</code> that displays a string and 4 pixmaps in a row (the final usage is so that the user can pick from a list of colour schemes).</p>
  
  <p>Can anyone help me customise the <code>QStandardItem</code> to get this effect? I thought I could use the rows to do to it but I've not had much luck. This is what I've tried so far...</p>
  
  <pre><code>myComboBox = QtGui.QComboBox()       
  
  item = QtGui.QStandardItem()
  item.setRowCount(4)
  
  colour1 = QtGui.QPixmap(16, 16)
  colour1 .fill(QtGui.QColor("red"))
  
  colour2 = QtGui.QPixmap(16, 16)
  colour2 .fill(QtGui.QColor("blue"))
  
  colour3 = QtGui.QPixmap(16, 16)
  colour3 .fill(QtGui.QColor("white"))
  
  childitem1 = QtGui.QStandardItem(QtGui.QIcon(colour1), "1")
  childitem2 = QtGui.QStandardItem(QtGui.QIcon(colour2), "2")
  childitem3 = QtGui.QStandardItem(QtGui.QIcon(colour3), "3")
  
  item.setChild(0, childitem1)
  item.setChild(1, childitem2)
  item.setChild(2, childitem3)
  
  myComboBox.model().appendRow(item)
  </code></pre>
  
  <p>But I just get an empty item and none of the children are visible - there's a good chance I've completely misunderstood how this works :)</p>