Qt for Linux/X11

Qt 對不同 Linux 平颱的支持是廣泛且成熟的。

Downloading and Installing Qt

安裝 Qt 有 2 種辦法:

  1. through the Qt Installers - downloads and installs Qt
  2. 透過 Qt 源代碼 .

可以下載 Qt 5 安裝程序和源代碼,從 下載 頁麵。更多信息,拜訪 Qt 快速入門 頁麵。

對開發主機的要求

The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development environment is still straightforward.

Use the following commands to install the basic requirements for building Qt applications:

Debian/Ubuntu (apt-get)

sudo apt-get install build-essential libgl1-mesa-dev
					
					

Fedora/RHEL/CentOS (yum)

sudo yum groupinstall "C Development Tools and Libraries"
sudo yum install mesa-libGL-devel
					
					

openSUSE (zypper)

sudo zypper install -t pattern devel_basis
					

從源代碼構建 Qt 5

You can also build Qt 5 from the source package and configure it according to your target platform. The source packages are obtained from http://www.qt.io/download/ .

Below, you will find more information about building Qt from source.

部署和其它問題

以下頁麵涵蓋創建 Linux/X11 應用程序的特定問題和推薦。

從這裏開始

我們邀您探索 Qt 的其餘部分。我們準備的概述幫助您決定要使用哪些 API,示例演示如何使用 API。

Qt 振奮且活躍的社區站點, http://qt.io 包含 Wiki、論壇及其它學習指南和演示文稿。