
Originally Posted by
Mad Max
but the text in other column was gone

(see the second attached image). What I can make so as it not happen?
void QLayerListDelegate
::paint ( QPainter * painter,
{
if(index.column()==3) return;
QStandardItemDelegate::paint(painter, option, index);
}
void QLayerListDelegate::paint ( QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
{
if(index.column()==3) return;
QStandardItemDelegate::paint(painter, option, index);
}
To copy to clipboard, switch view to plain text mode
Bookmarks