Hi all,
I'm using a qgraphicsscene inside of a qt console application, but it crashes when closing the console window due to some memory problem.
I have reduced my code to the minimum expression to reproduce the error:
#include <QGraphicsScene>
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[])
{
return a.exec();
}
#include <QGraphicsScene>
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QGraphicsScene scene;
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I can compile this code, but i get this error when I close the window:
error.JPG
If someone is wondering why I'm using a qgraphicsscene in a qt console application, it is due I'm using the scene to detect collisions from real vehicles (I receive their positions from different sockets, and I do not need to display them, I just want to detect if they are going to collide).
Can anyone help me?
Bookmarks