For an icon, make QBrushModel::data() return a pixmap for Qt::DecorationRole. QComboBox can only represent the contents of a single column, so you need to return both decoration and display roles for the same column.
For an icon, make QBrushModel::data() return a pixmap for Qt::DecorationRole. QComboBox can only represent the contents of a single column, so you need to return both decoration and display roles for the same column.
J-P Nurmi
EricTheFruitbat (24th January 2007)
Qt::DecorationRole was exactly what was called for.
Thank you.
Bookmarks