Hot answers tagged


Under the hood, it might be implemented differently, but the visible effect of MyClass(const QByteArray & raw){ this->m_rawData =raw; } will be that the contents of raw get copied into m_rawData and will survive after raw has been destructed. This works because m_rawData is declared as being a value of type QByteArray. If it would have ...

Only top voted, non community-wiki answers of a minimum length are eligible