Thanks for your quick response 
I have a problem with starting the thread. start function is in my render() routine in my RenderThread class. I have tried to call render routine from various locations in my code, but all of them resulted in crashing right at the startup of my application.
I even added a timer event slot to my RenderThread class and call it when I construct the object of this class but got the same result, crashing about a second after the startup!
I have no idea why my app crashes like this!
you can see my code down here.
private slots:
private slots:
void timerEvent(QTimerEvent *event);
To copy to clipboard, switch view to plain text mode
RenderThread
::RenderThread(QObject *parent
){
restart = false;
abort = false;
startTimer(500);
}
RenderThread::RenderThread(QObject *parent)
: QThread(parent)
{
restart = false;
abort = false;
startTimer(500);
}
To copy to clipboard, switch view to plain text mode
{
Q_UNUSED(event);
render();
}
void RenderThread::timerEvent(QTimerEvent *event)
{
Q_UNUSED(event);
render();
}
To copy to clipboard, switch view to plain text mode
Bookmarks