If you don't want to bother with the GUI, you can use mfc, c #, java, or even python. I chose Qt because Qt is a specialized graphic GUI platform. Unlike c #, java, python, and other languages, it comes with or extends the graphics library. MFC is not selected because it is not cross-platform. Another reason is that I prefer to work in a linux environment and open-source software. Qt has two development methods in linux. Command Line and IDE. Common ides include the official QtCreator, eclipse plug-in, and V
If you don't want to bother with the GUI, you can use mfc, c #, java, or even python. I chose Qt because Qt is a specialized graphic GUI platform. Unlike c #, java, python, and other languages, it comes with or extends the graphics library. MFC is not selected because it is not cross-platform. Another reason is that I prefer to work in a linux environment and open-source software.
Qt has two development methods in linux. Command Line and IDE. Commonly used ides include the official Qt Creator, eclipse plug-ins, and VS plug-ins. And lightweight ides such as Qdevelop and Kdevelop in linux. In linux, we will introduce Qt Creater. You can view the document on your own using the command line.
Qt SDK cannot be installed in Fedora14. The gmake step prompts that a library is not defined, and google does not find a solution, so the "Framework Only" version is installed.
First switch to the root administrator
- Su root
I. Install the Qt Library
1. Download the official Qt library. As of today (, the latest release of qt-everywhere-opensource-src-4.7.1.tar.gz is
2. Go to the directory where the downloaded file is located, and then:
- Tar-zxvf qt-everywhere-opensource-src-4.7.1.tar.gz-C/tmp
3Prepare data to build:
- ./Configure
"C" is a commercial version and requires a payment. "o" is an open-source version and is free of charge. Therefore, enter o.
The prompt is as follows:
Therefore, follow the prompts to install the SDK.
- Gmake
- Gmake install
Then the installation is complete.
Ii. Configuration path
After installation, you still have to configure the path.
- Vim/etc/profile
Set the following Copy and save the following code.
- PATH =/usr/local/Trolltech/Qt-4.7.1/bin: $ PATH
- Export PATH
3. Install/use Qt Creator
Download Qt Creator from the official website. As of today ) The latest version is qt-creator-linux-x86-opensource.2.0.1.bin.
Go to the qt-creator-linux-x86-opensource.2.0.1.bin directory, and then:
- /Qt-creator-linux-x86-opensource.2.0.1.bin
After completion:
4. Set Desktop shortcuts for Qt Creator
- Vim/usr/share/application/qtcreator. desktop
Copy the following code and save it.
- [Desktop Entry]
- Encoding = UTF-8
- Name = QtCreator
- Comment = Qt Creator
- Exec =/opt/qtcreator-2.0.1/bin/qtcreator
- Icon =/opt/qtcreator-2.0.1/bin/Nokia-QtCteator-64.png
- Terminal =False
- StartupNotify =True
- Type = Application
- Categories = Application; Development
Find the development Directory to find the Qt Creator.