79812067

Date: 2025-11-07 08:18:50
Score: 1
Natty:
Report link

I am dealing with it like this for now

QString* msg = new QString("Hello");
QObject::connect(this, &QtClass::bar, this, [msg]()
    {
        QString mymsg = *msg;
        mymsg.append(" World");
        // display mymsg or pass it around
        delete msg;
    });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Me3nTaL