Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Base class undefined??
QtWS25 Last Chance

[SOLVED] Base class undefined??

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 4.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bareil76
    wrote on last edited by
    #1

    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);
    }
    @

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bareil76
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved