QCustomPlot Discussion and Comments

Building with dllReturn to overview

I'm not sure if I'm doing it right
I added to my .h file this


and to .pro file this

Especially not sure about the second

You'll likely have two projects - the application project and the library project. The second line you listed should be added to the .pro file of your library project.

In your application code, the include directive should be #include "qcustomplot.h". You may need to configure the application project file's INCLUDEPATH and LIBS so that the compiler/linker can find the header file to include and the library file to link, respectively.

Instead of adding #define QCUSTOMPLOT_USE_LIBRARY, you could add DEFINES += QCUSTOMPLOT_USE_LIBRARY in your application project file instead each time qcustomplot.h is included. This is what I'm doing.