PDA

View Full Version : File generated with too old version of Qt Designer



Semi_Colon
27th May 2010, 16:55
Hi everyone,

I apologize if this has been asked/answered before, but I searched and couldn't find any obvious information on it.

I am working on updating a project that was created/last updated in 2004 in C++ that used version 3.3 of QT for its UI. I have installed the 2010.02.1 version of QT as part of the updating process, but when I compile the project (in VS2005) I get the following errors:


4>------ Build started: Project: hutsGUI, Configuration: Debug Win32 ------
3>Moc'ing hutsDataUS.h...
4>Uic'ing hutsStartTabBase.ui...
2>uic: File generated with too old version of Qt Designer (3.3)
2>File 'hutsRegistrationTabBase.ui' is not valid
1>uic: File generated with too old version of Qt Designer (3.3)
1>File 'hutsRenderingTabBase.ui' is not valid
4>uic: File generated with too old version of Qt Designer (3.3)
4>File 'hutsStartTabBase.ui' is not valid
1>Qt User Interface Compiler version 4.6.2
1>Usage: C:\Qt\2010.02.1\qt\bin\uic.exe [options] <uifile>
1> -h, -help display this help and exit
1> -v, -version display version
1> -d, -dependencies display the dependencies
1> -o <file> place the output into <file>
1> -tr <func> use func() for i18n
1> -p, -no-protection disable header protection
1> -n, -no-implicit-includes disable generation of #include-directives
1> for forms generated by uic3
1> -g <name> change generator
2>Qt User Interface Compiler version 4.6.2
2>Usage: C:\Qt\2010.02.1\qt\bin\uic.exe [options] <uifile>
2> -h, -help display this help and exit
4>Qt User Interface Compiler version 4.6.2
2> -v, -version display version
4>Usage: C:\Qt\2010.02.1\qt\bin\uic.exe [options] <uifile>
4> -h, -help display this help and exit
2> -d, -dependencies display the dependencies
4> -v, -version display version
2> -o <file> place the output into <file>
4> -d, -dependencies display the dependencies
4> -o <file> place the output into <file>
4> -tr <func> use func() for i18n
4> -p, -no-protection disable header protection
2> -tr <func> use func() for i18n
4> -n, -no-implicit-includes disable generation of #include-directives
4> for forms generated by uic3
2> -p, -no-protection disable header protection
4> -g <name> change generator
2> -n, -no-implicit-includes disable generation of #include-directives
2> for forms generated by uic3
2> -g <name> change generator
1>moc: .\hutsRenderingTabBase.h: No such file
2>moc: .\hutsRegistrationTabBase.h: No such file
4>moc: .\hutsStartTabBase.h: No such file
2>Project : error PRJ0019: A tool returned an error code from "Uic'ing hutsRegistrationTabBase.ui..."
4>Project : error PRJ0019: A tool returned an error code from "Uic'ing hutsStartTabBase.ui..."
1>Project : error PRJ0019: A tool returned an error code from "Uic'ing hutsRenderingTabBase.ui..."
3>Moc'ing hutsDataCT.h...

I assume this has something to do with the fact that the UI files were created using the old version of QT, but I tried opening/converting them with the new version of QT only to have the same problem crop up. Is there a way to properly convert old UI files for use with newer versions of QT?

Thank you very much,
Colin

esavard
27th May 2010, 18:17
Never done a Qt3 to Qt4 migration but I find this interesting article :

http://doc.trolltech.com/4.3/porting4-designer.html

Hope it helps.

Etienne.

Semi_Colon
28th May 2010, 16:26
Hi Etienne,

Thanks for the link, I will check it out and update on how it goes.

Cheers,
Colin