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) :
Qt Code:
  1. #ifndef FBL_GUI_H
  2. #define FBL_GUI_H
  3.  
  4. #include "fbl_gui_global.h"
  5. #include "test.h"
  6. class FBL_GUI_EXPORT fbl_gui
  7. {
  8. public:
  9. fbl_gui();
  10. ~fbl_gui();
  11.  
  12. private:
  13.  
  14. };
  15.  
  16. #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:

Qt Code:
  1. #ifndef TEST_H
  2. #define TEST_H
  3.  
  4. #include <QWidget>
  5. #include "ui_test.h"
  6.  
  7. class test : public QWidget
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. test(QWidget *parent = 0);
  13. ~test();
  14.  
  15. private:
  16. Ui::testClass ui;
  17. };
  18.  
  19. #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?