Thanks, it starts to look much better now that I've changed the code to this:
QVariant QInt64Item
::data(int role
) const {
if (role==Qt::EditRole)
return m_data;
else if (role==Qt::CheckStateRole)
return Qt::Unchecked;
else if (role==Qt::DisplayRole)
return m_data;
else if (role==Qt::TextAlignmentRole)
return Qt::AlignRight;
else
}
QVariant QInt64Item::data(int role) const
{
if (role==Qt::EditRole)
return m_data;
else if (role==Qt::CheckStateRole)
return Qt::Unchecked;
else if (role==Qt::DisplayRole)
return m_data;
else if (role==Qt::TextAlignmentRole)
return Qt::AlignRight;
else
return QTableWidgetItem::data(role);
}
To copy to clipboard, switch view to plain text mode
But I cant find anything on how to get rid of the check box. My best guess is that it's a call to setFlags() but how?
Bookmarks