Alright, I put an
emit axischanged(aPos[ev.number]);
emit axischanged(aPos[ev.number]);
To copy to clipboard, switch view to plain text mode
in the joystick controller. I set up a connect alongside my other GUI connects like so:
connect(&thread,SIGNAL(axischanged(int)),this,SLOT(joyOpts(int)),Qt::QueuedConnection);
connect(&thread,SIGNAL(axischanged(int)),this,SLOT(joyOpts(int)),Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
It compiles successfully, and runs. However, when I enable the joystick, it crashes. Debug revealed:
[Thread debugging using libthread_db enabled]
[New Thread 0x40a88950 (LWP 5623)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x40a88950 (LWP 5623)]
0x00007fc3cb47593c in QMetaObject::activate () from /usr/lib/libQtCore.so.4
(gdb)
QThread: Destroyed while thread is still running
In fact, I'm getting a lot of QThread: Destroyed messages. I havent set a destructor though.. it's just supposed to run infinitely.
Any thoughts?
Thank you for your help thus far
Bookmarks