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:
if (is_editable) item_flags |= Qt::ItemIsEditable; //else // 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
Bookmarks