I’m doing:
QMap<QString,Qt::CheckState>::iterator beg = data_.begin();//here data_ is of type QMap<QString,Qt::CheckState>
and qt tells me:
error: conversion from ‘QMap::const_iterator’ to non-scalar type ‘QMap::iterator’ requested
Why? I didn’t asked for cbegin, so what’s the story with this?
Sounds like
data_isconstat this point in time, so theconstversion ofbegin()will be called. 🙂