LOL I still don't get it. I think the way I understand it is that I have a dummy class which gets included into the main application and it exports other class with UI. But how do I include the base class into main application without ui header?
So far I have this:
Here the dummy class which includes the interface class (test.h) :
#ifndef FBL_GUI_H
#define FBL_GUI_H
#include "fbl_gui_global.h"
#include "test.h"
class FBL_GUI_EXPORT fbl_gui
{
public:
fbl_gui();
~fbl_gui();
private:
};
#endif // FBL_GUI_H
#ifndef FBL_GUI_H
#define FBL_GUI_H
#include "fbl_gui_global.h"
#include "test.h"
class FBL_GUI_EXPORT fbl_gui
{
public:
fbl_gui();
~fbl_gui();
private:
};
#endif // FBL_GUI_H
To copy to clipboard, switch view to plain text mode
Then I have an interface class in the same dll project:
#ifndef TEST_H
#define TEST_H
#include <QWidget>
#include "ui_test.h"
{
Q_OBJECT
public:
~test();
private:
Ui::testClass ui;
};
#endif // TEST_H
#ifndef TEST_H
#define TEST_H
#include <QWidget>
#include "ui_test.h"
class test : public QWidget
{
Q_OBJECT
public:
test(QWidget *parent = 0);
~test();
private:
Ui::testClass ui;
};
#endif // TEST_H
To copy to clipboard, switch view to plain text mode
Now the problem is that if I include the base dll class it also includes the widget class. How can I skip this part but be able to access the widget and be able to create it in the main app?
Bookmarks