I am trying to get familiar with freeCAD developing process by practicing creating a new workbench. I have encountered a weird problem when I am trying to simply add an ui created by QtDesigner to my workbench using Gui::TaskView class. So I created a class inherited from QWidget and declared a QOBJECT in my class. As long as I included GUi/TaskView/TaskView.h, compiler will always reports an error says:
error: variable ‘Base::BaseExport Base::Type’ has initializer but incomplete type
I wonder if anyone have encountered this problem before? Please help.
I didn't find the right solution from the internet.