[SOLVED] Base class undefined??



  • Hi all, I have a "base class undefined" error that I don't understand.

    I have a base class Modulation which is sub-classed by two other clases AnalogModulation and BasicModulation .

    I create the classes in the mainwindow.cpp file like so:

    mAnalogMod = new AnalogModulation();
    mBasicModulation=new BasicModulation(this);

    BasicModulation is compiling perfectly but now AnalogModulation... what is the problem?

    @class Modulation
    {
    public:
    Modulation::Modulation()
    {

    }
    

    }@

    @#include <QMainWindow>
    #include <QTableWidget>
    #include "definedConstants.h"
    #include "modulation.h"

    class AnalogModulation : public QMainWindow, public Modulation
    {
    Q_OBJECT
    public:
    AnalogModulation(QWidget *parent = 0);
    }
    @

    @
    #include <QMainWindow>
    #include <QSignalMapper>
    #include "definedConstants.h"
    #include "modulation.h"

    namespace Ui {
    class MainWindow;
    }
    class BasicModulation : public QMainWindow, public Modulation
    {
    Q_OBJECT
    public:
    BasicModulation(QWidget *parent = 0);
    }
    @



  • Ok.. found the problem. I had an include in another class that was causing the problem.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.