Hi,

I am getting this error:

Qt Code:
  1. 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
Qt Code:
  1. void fixComboDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
  2. const QModelIndex &index) const
  3. {
  4. QString description;
  5. description = "Something";
  6. temp = description;
  7. }
To copy to clipboard, switch view to plain text mode 

temp is declared in the h as a private member
Qt Code:
  1. private:
  2. QString temp;
To copy to clipboard, switch view to plain text mode 

why? And how can I do temp = description;!!!

Thanks!