For me it is always easier to take a look at the generated from1.h file. Maybe Designer put something weird in the ui file. Can you post the part where the error occured?
Just to make it clear: The first code quotation is a h-file!? The second one is a cpp-file!?
Bookmarks