it is not clear what you are asking and your picture, showing everything shaded in some way, does not help much.
it is not clear what you are asking and your picture, showing everything shaded in some way, does not help much.
Never mind,
found the solution by making sure to copy all parameters from the paint call to drawPrimitive befor doing the rest of my drawing.
Qt Code:
void myDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { ... ... //Do my drawing }To copy to clipboard, switch view to plain text mode
Bookmarks