Hi,
I am getting this error:
error: passing 'const QString' as 'this' argument of 'QString& QString::operator=(const QString&)' discards qualifiers
error: passing 'const QString' as 'this' argument of 'QString& QString::operator=(const QString&)' discards qualifiers
To copy to clipboard, switch view to plain text mode
In this code
{
description = "Something";
temp = description;
}
void fixComboDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
QString description;
description = "Something";
temp = description;
}
To copy to clipboard, switch view to plain text mode
temp is declared in the h as a private member
private:
private:
QString temp;
To copy to clipboard, switch view to plain text mode
why? And how can I do temp = description;!!!
Thanks!
Bookmarks