N/APosted on - 07/10/2012
I am a QTCreator 4.7.2 user. I was trying to copy the source from the QT development environment in Windows 7 to Mac. I am getting this error: “Could not decode “filename.cpp” while opening the cpp file. I don’t have any problem with the other modules. Filename.ui is editable, but only the source is giving the error.
How can I correct this error?
QTCreator Error When Copying Source Codes From Windows to Mac
Instead of using the QT Creator you can use any other emulator to open the.cpp files. I am also a coder and I mostly code in the Borland C compiler because it does not give any error like that.
Download the Borland from a site and install it.
Define the path of the libraries and the saved files.
Open your project in it and see if it shows you any decent information about the code or the source that you are trying to use.
Edit the code according to the source as you would transfer it from windows to mac so it requires few libraries to be added on so that you can use it perfectly.