79270381

Date: 2024-12-11 03:10:53
Score: 4
Natty:
Report link

I have the same question. I've tried QMap<int, QVariable> and QHash. But both .insert() and operator[] do not work. They all crashed at the QHash::operator[] -> QHash::detach. Just like this.

qDebug() << value << role;
m_map[role] = new QVariant(value);

The value and role are both conrrect. But the m_map[] always crashed at function detach.

Reasons:
  • Blacklisted phrase (1): I have the same question
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same question
  • Low reputation (1):
Posted by: 嘉然今天吃电弧星