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

Coding + IDE + Code-Editor + Syntax + User-Functions + Anything else

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

Postby GaryVass » Thu Jul 28, 2011 11:49 pm

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.....
GaryVass
 
Posts: 109
Joined: Wed May 04, 2011 8:03 pm

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

Postby Henning » Fri Jul 29, 2011 11:16 am

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
Henning
 
Posts: 523
Joined: Fri Aug 13, 2010 6:29 pm

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

Postby berndnoetscher » Fri Jul 29, 2011 7:57 pm

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
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am

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

Postby GaryVass » Fri Jul 29, 2011 9:33 pm

It was the file name extension... changed it to uiClass and the error has gone away.

Thanks
GaryVass
 
Posts: 109
Joined: Wed May 04, 2011 8:03 pm


Return to Questions & Answers

Who is online

Users browsing this forum: No registered users and 0 guests

cron