Qt for Linux/X11

Qt 对不同 Linux 平台的支持是广泛且成熟的。

Downloading and Installing Qt

安装 Qt 有 2 种办法:

  1. through the Qt Installers - downloads and installs Qt
  2. through the 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.

部署和其它问题

The pages below covers specific issues and recommendations for creating Linux/X11 applications.

从这里开始

我们邀您探索 Qt 的其余部分。我们准备的概述帮助您决定要使用哪些 API,示例演示如何使用 API。

Qt 振奋且活跃的社区站点, http://qt.io 包含 Wiki 论坛及其它学习指南 演示文稿。