[Qt-creator] Generation of UI file problem - sorry about repost

Greg Santucci thecodewitch at yahoo.com
Fri Nov 7 01:22:27 CET 2008


When making a new widget with File->New->"Qt
Designer Form Class", specifying a name, and adding
some controls to it, I get compile errors saying
"invalid use of undefined type 'struct
Ui::TestWidgetOfDoom'"

I tracked it down to the name of the widget being
"Form" instead of "TestWidgetOfDoom"
when I open testwidgetofdoom.ui in the editor. Initially I
was suspicious when I saw "Form" instead of
"TestWidgetOfDoom" in the ui_testwidgetofdoom.h
file.

The workaround is to manually correct the name in the Qt
Designer. This bug won't appear if no controls are
added, so maybe the ui file is generated correctly
initially, but when opened in the designer, is reverted to
the name "Form".

(re-posted to correct formatting - sorry)


      



More information about the Qt-creator-old mailing list