Hi
I'm faced with an issue i can't solve and don't even know if it's related to Qt, QCP or my deficiency...
I use QCP as a shared library, compiled with the provided pro file.
I want to create a shared library with a custom object subclassing qcp and have many crashes using it in an application (starting or closing the application). If i don't use shared libraries (what i'v done for 2 years with this application), everything is fine.
So i just created a simple test below to reproduce the behavior and it crashes when i close the app, gdb can't tell me where the sigsev appears and valgrind just tells me that there is a jump to an invalid address.
So here is my subclass implementation :
Board::Board(QWidget *parent) : QCustomPlot(parent) { mLayout = new QCPLayoutGrid(); } Board::~Board() { delete mLayout; mLayout = nullptr; }
And my app main :
int main(int argc, char *argv[]) { QApplication a(argc, argv); Board t; t.show(); return a.exec(); }
Can someone reproduce the issue ? I can provide the pro files if needed...