For some reason when I try to emit a QString I get a segfault.
Code:
QString event2 = event; stopper.lock(); emit debugEvent( event2 ); // <--- Segfaults right here stopper.unlock(); }
When I went digging through the backtrace I found it was trying to call all the connected slots using a Qt::AutoConnection.
Code:
if ((c->connectionType == Qt::AutoConnection
(According to the qtcreator debugger, c->connectionType was 0 which is the same as Qt::AutoConnection).
The strange part is the only connection I make to this signal I emit is to another signal in the QThread that owns this object. And it never reaches any slots.
Anyway, I can just comment it out for now, but I'd like to know what mistake I'm making.