QCustomPlot Discussion and Comments

Plots in QTextDocumentReturn to overview

Hello,

I'm trying to plot QCustomPlot barplots in a QTextDocument and followed the provided example. However, when compiling I get the following error:
src/qcpdocumentobject.h:40: Error: Undefined interface

I use CMake to manage the compiling. It seems there is a problem with moc and it cannot find the Q_DECLARE_INTERFACE

Thanks!

Karsten

Hello,

Problem fixed. This was related to CMake and UIC macro. By using
set(CMAKE_AUTOUIC ON)
instead of the UIC macro
QT5_WRAP_UI(...)
the problem was fixed.