[PyKDE] QComboBox full but box is empty [SOLVED]

Tom Brown brown at esteem.com
Wed May 3 01:18:48 BST 2006


My problem was solved by modifying the data() method of the StringsModel. This 
method needs to check for the EditRole as well as the DisplayRole as shown 
below.

    if role in [Qt.DisplayRole, Qt.EditRole]:
      return QVariant(self.strings[index.row()])

Thanks,
Tom




More information about the PyQt mailing list