反过来 要显示detector窗口就必须写成
#include "detector222.h"
#include "controller111.h"
窗口可以显示
如果写成
#include "controller111.h"
#include "detector222.h"
就报错
G:\Controller\controller\main.cpp:17: error: 'CDetector' was not declared in this scope
CDetector f;
^
G:\Controller\controller\main.cpp:18: error: 'f' was not declared in this scope
f.show();
^