Hi

This is probably a simple question, but I can't figure out how to do it. I have a bitwise enum. I know that you set one of the bits as follows (example taken out of a table model implementation:

Qt Code:
  1. if (is_editable)
  2. item_flags |= Qt::ItemIsEditable;
  3. //else
  4. // item_flags (what to do here) Qt::ItemIsEditable;
To copy to clipboard, switch view to plain text mode 

I've searched the web but couldn't find any solutions, or I missed them.
I looked at the QWidget::setAttribute() function implementation but it does quite a few things in there and I'm hoping there is a simpler way to do it.

Thanks for your time.
Jaco