Page 1 of 1

ui file widget class type...........

PostPosted: Thu Jul 28, 2011 11:49 pm
by GaryVass
What does the error:
Q7Basic: ui file 'frmManager' widget class type (class = QWidget) differs from source code file 'frmManager.uiCode' (class = uiCode)...

mean?

I have tried to save both the form and the code module to get them to not 'differ' but that does not seem to make a difference.....

Re: ui file widget class type...........

PostPosted: Fri Jul 29, 2011 11:16 am
by Henning
Hi,

Have you by any chance added a Module with the same name as the Form? None of my projects has any .uiCode files.

There are only two files per Form. An .ui for the graphics and a .QWidget for the code.

/Henning

Re: ui file widget class type...........

PostPosted: Fri Jul 29, 2011 7:57 pm
by berndnoetscher
GaryVass wrote:What does the error:
Q7Basic: ui file 'frmManager' widget class type (class = QWidget) differs from source code file 'frmManager.uiCode' (class = uiCode)...

mean?

I have tried to save both the form and the code module to get them to not 'differ' but that does not seem to make a difference.....


The file extension uiCode must be uiClass (there is a bug in the menu entry create new class, which falsly name uiCode instead of uiClass)
Sorry

Re: ui file widget class type...........

PostPosted: Fri Jul 29, 2011 9:33 pm
by GaryVass
It was the file name extension... changed it to uiClass and the error has gone away.

Thanks