Hello!
I think I found a big problem :P
I had some QCheckBox declared in my mainwindow.ui file and some toggled(bool) functions related to them in my mainwindow.cpp/h and I decided to change theyr names. Instead though of going to the Design interface in QtCreator and change theyr names in the specific place and than go to the .cpp and change the names of the functions, I decided to do a "replace all" in QtCreator thinking that this would be the quickest way.
After changing some code on which seems to be the ui source code, I went back to the Designer interface in the .ui and found out that the QCheckBoxes's names weren't changed there. So I edited them mannually. Than I run the app and I found out that the toogled(bool) functions also hadn't theyr names changed, so I went to the .cpp and changed them too (in other words, my trying to be smart by using replace all went for nothing).
But after this, I tried to enter again in the mainwindow.ui file in the Designer interface and QtCreator didn't allowed me, saying "An enconding error was encountered" in a pop up. After several times trying, I decided to do the procces Clean All - Run Qmake - Rebuild All, and than a new error appeared:
00:57:15: Running build steps for project mShare...
00:57:15: Configuration unchanged, skipping qmake step.
00:57:15: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `D:/Minhas obras/Softwares/mShare/mShare 0.0.7'
c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
mingw32-make.exe[1]: Leaving directory `D:/Minhas obras/Softwares/mShare/mShare 0.0.7'
uic: Error in line 1751, column 16 : Encountered incorrectly encoded content.
File 'mainwindow.ui' is not valid
mingw32-make.exe[1]: *** [ui_mainwindow.h] Error 1
mingw32-make.exe: *** [release] Error 2
00:57:15: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project mShare (target: Desktop)
When executing build step 'Make'
00:57:15: Running build steps for project mShare...
00:57:15: Configuration unchanged, skipping qmake step.
00:57:15: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `D:/Minhas obras/Softwares/mShare/mShare 0.0.7'
c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
mingw32-make.exe[1]: Leaving directory `D:/Minhas obras/Softwares/mShare/mShare 0.0.7'
uic: Error in line 1751, column 16 : Encountered incorrectly encoded content.
File 'mainwindow.ui' is not valid
mingw32-make.exe[1]: *** [ui_mainwindow.h] Error 1
mingw32-make.exe: *** [release] Error 2
00:57:15: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project mShare (target: Desktop)
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
So now I can't compile my software as well as I can't have acces to the .ui file.
How can I fix this problem? I would attach the .ui file here but the forum's limits didn't allowed me because of size limitations. I also went to this 1751 line and found nothing - I guess is because I'm looking at the mainwindow.ui file, not ui_mainwindonw.h which by the way is missing.
Urgent help please
Thanks in advance,
Momergil
Bookmarks