Quote Originally Posted by FelixB View Post
you could debug and search the code that is responsible for thisaccess violation.
I wrote: "During startup [...]". That means no code is executed (better, no code visible through debug).

Quote Originally Posted by desantossierra
could you copy your *.cpp?
no errors for me in the declaration

No code in the cpp file, but the empty implementation of the constructor:

Qt Code:
  1. myplot::myplot(QWidget *parent): QwtPlot(parent) { }
To copy to clipboard, switch view to plain text mode 


I've just found I need to remove the Q_OBJECT macro. Without it runs.

Does anyone know why?

Quote Originally Posted by Uwe View Post
This is usually a problem of your build/runtime environment and has nothing to do with the code.

Maybe. But why removing the Q_OBJECT macro it works? It seems code related.