Use QT-general Linux technology-Linux programming and kernel information in CodeBlock. The following is a detailed description. I have been using vim to write QT programs for a long time, especially auto-completion.
Today, when I think of CodeBlock, I downloaded it. As a result, it was really depressing that we could not create a new QT project. After google, we saw a post on a similar issue on a German Forum.
It is a templates file that modifies CodeBlock.
Find the file:
There is a wizard. script under/usr/share/codeblocks/templates/wizard/qt4.
It is.
Because my QT is not compiled by source code and is returned by apt-get, the distribution is messy and distributed according to the debian directory, however, CodeBlock is configured according to the distribution of all files in one directory, so problems may occur when creating a project.
The Directory of QT returned from apt-get is/usr/share/qt4, which must include and lib under the directory, and the include compiled by QT must be under/usr/include/qt4, the Connection Library is under/usr/lib.
After the modification, create a new project and find that there is a problem with the lib option. The prompt that lib must be a. a or a file ending with. lib is really depressing.
Write a script to automatically link the. so file.