QCustomPlot Discussion and Comments

Derived class include QCustomPlot errorReturn to overview

I am trying to build a library where the class that generates the QCustomPlot is derived from a base class that is a subclass of QFrame. I am just trying to figure out what I want to do so these classes are not developed yet. The base class looks something like this:

class QCCMSAMPLERSHARED_EXPORT QCcmDomainPanel
        : public QFrame
{
    Q_OBJECT
public:
    QCcmDomainPanel(QWidget *parent = 0);
    ~QCcmDomainPanel();
    void setDistributor(CcmDistributor* distributor);
protected:
    CcmDistributor* mDistributor;
};

and the class that is derived from this class is:

#include <QCustomPlot.h>

class QCCMCHARTSHARED_EXPORT QCcmChart
        : public QCcmDomainPanel //QFrame
{
    Q_OBJECT
public:
    QCcmChart(QWidget *parent = 0);
protected:
    QCustomPlot* mCustomPlot;
};

If this class derives from QFrame there is no probem, if the class derives from QDomainPanel then I get errors in the build of this library.

error: C2589: '(' : illegal token on right side of '::' at QCustomPlot.h 4261

while compiling class template member function 'double QCPAbstractPlottable1D<QCPGraphData>::selectTest(const QPointF &,bool,QVariant *) const' at 4254
.. and two more


Is there a way to resolve this?

Solved way too easy, you just have to look in the correct place.