Quote Originally Posted by Michiel
Yes, include mymainform.h into mylightdialog.cpp. In mydialog.h you only needed the name. In the .cpp you need the actual class (probably).
sorry but #include "mymainfrom.h" in .cpp seems necessary....don't compile with only class mymainform...
these are the errors:
Qt Code:
  1. myLightDialog.cpp(27): error C2027: use of undefined type 'myMainForm'
  2. myLightDialog.cpp(27): error C2227: left of '->isEnabled' must point to class/struct/union
  3. myLightDialog.cpp(27): error C2227: left of '->tab1' must point to class/struct/union
  4. myLightDialog.cpp(28): error C2027: use of undefined type 'myMainForm'
To copy to clipboard, switch view to plain text mode