i tried to change updateEditorGeometry().
{
QRect rect
= option.
rect;
if (index.column() == m_VisibilityColumnIndex)
{
rect.setX(rect.x() + 10);
}
editor->setGeometry(rect);
}
void MyDelegate::updateEditorGeometry( QWidget * editor, const QStyleOptionViewItem option, const QModelIndex & index ) const
{
QRect rect = option.rect;
if (index.column() == m_VisibilityColumnIndex)
{
rect.setX(rect.x() + 10);
}
editor->setGeometry(rect);
}
To copy to clipboard, switch view to plain text mode
but obviously the method never gets called (i set a breakpoint there). so what can i do?
Bookmarks