文档章节

Welcome to Qt 5

Amamatthew
 Amamatthew
发布于 2014/06/13 18:13
字数 806
阅读 182
收藏 0

行业解决方案、产品招募中!想赚钱就来传!>>>


Welcome to Qt 5
===============

Qt is a cross-platform application and user interface framework. It
consists of a number of software libraries and development tools.

Qt is developed as an open source project. It is available under both
open source and commercial licenses.

All information on Qt is available on the Qt Developer Network:
http://qt-project.org

Be sure to check out the release notes, which will list any known
problems or limitations of this version:
http://qt-project.org/wiki/Category:Release


Overview
--------

You can use the Qt 5 installation program to install the following components:

- Qt libraries, prebuilt for a particular development platform (operating system
  and compiler)
- Qt Creator integrated development environment (IDE)
- Basic development tools, prebuilt for a particular development platform
- Documentation
- Qt in source code form (needed only if you want to build the framework and
  tools yourself)

Install Qt libraries to develop or run applications that need the Qt runtimes or
to try out example applications built with Qt.

Qt Creator is designed to make Qt development easier, but you can also use a 3rd
party IDE (such as MS Visual Studio), or just an editor and command line, in
addition to basic Qt development tools (Qt Designer, Qt Assistant, qmlscene, and
so on).


Installing Qt 5
---------------

You can download Qt 5 from http://qt-project.org/downloads. The site provides
download links for all supported development platforms.

Start the installation program like any executable on the development platform.
On Linux, you might first have to make the installation program executable.

Select the components that you want to install and follow the instructions of
the installation program to complete the installation.

Use the Maintenance Tool under <install_dir> to remove all installed
components.


Directory Structure
-------------------

The default top-level installation directory is the directory "Qt<version>" in
your home directory, but you can specify another directory (<install_dir>). On
Windows, however, the default top-level installation directory is "C:\Qt\Qt<version>".
Each Qt version is installed in the <install_dir>/<version> directory. This directory
contains subdirectories for the Qt libraries (<compiler>) and sources (Src).


Starting Development Tools
--------------------------

You can start Qt Creator directly after the installation by selecting the option
on the last page of the installation program. You can start most of
the development tools, such as GUI designers, compilers, and debuggers
directly from Qt Creator. You can also access the installed documentation and
example applications from Qt Creator.

The development tools are located in the directory
<install_dir>/<version>/<compiler>/bin. You can run them from Qt Creator or from
the command line. You can also launch some of them as standalone applications.
For example:

- Qt Assistant, the Qt documentation reader
- Qt QML Scene, the viewer for Qt Quick 2 files
- Qt QML Viewer, the viewer for Qt Quick 1 files
- Qt Designer, the GUI designer for Qt widgets-based applications

You can use Qt Creator to develop with other Qt versions as well:

   http://qt-project.org/doc/qtcreator/creator-project-qmake.html


Running Example Applications
----------------------------

You can open most example applications in the Qt Creator Welcome mode to build
and run them. Additional examples can be opened by browsing
<install_dir>/Examples.

Building Qt 5 from Source
-------------------------

See http://qt-project.org/wiki/Building_Qt_5_from_Git
for instructions on building Qt from source.


Developing Qt Applications
--------------------------

To develop a Qt application, you need to set up a project. Qt Creator contains
wizards that guide you step-by-step through the project creation process. The
wizards prompt you to enter the settings needed for a particular type of project
and create the necessary files for you. To start, select File > New File or
Project.

The wizards create projects that use the Qt build tool, qmake. It is a
cross-platform system for build automation that helps simplify the build process
for development projects across different platforms. You can modify the build
and run settings for qmake projects in the Qt Creator Projects mode.

Qt Creator provides support for building, running, and deploying Qt applications
for different target platforms, or using different compilers, debuggers, or
Qt versions. Kits define the tools, device type and other settings to use when
building and running your project.

The Qt 5 installation program adds the installed Qt version
(<install_dir>/<version>/<compiler>/bin/qmake) to Qt Creator and creates a kit
that specifies the installed Qt version and compiler. To use the kit, add it for
your project in the Qt Creator Projects mode. Then select the kit in the Kit
selector before you build or run the project.

To compile C++ Qt applications by some other means, add
<install_dir>/<version>/<compiler>/include to your build tool's search path
for include files, and <install_dir>/<version>/<compiler>/lib to the search
path for libraries.


Want to Know More?
-------------------

Much more information is available at:

- http://qt-project.org/resources/getting_started
- http://qt-project.org/doc/
- http://qt-project.org


We hope you will enjoy using Qt!

- The Qt developers @ qt-project.org

Amamatthew
粉丝 67
博文 1050
码字总数 76443
作品 0
厦门
后端工程师
私信 提问
加载中
请先登录后再评论。
libqt4json

libqt4jon 是一个使用 Qt QVariant 对象的 JSON 序列化和反序列化库。可系列化原生类型如 integer, double, QString, lists, maps, and QObject recursively. 只序列化通过 QObject Q_PROPER...

匿名
2013/03/29
384
0
QtCipherSqlitePlugin

这是一个带有加密功能的 SQLite3 Qt 插件,可以同其它 SQL 插件一样在 Qt 程序中使用。Qt 原始携带的 SQLite 插件不带有加密功能,本插件则提供了加密功能,适合于保存密码等敏感信息。 详细...

devbean-豆子
2013/01/10
1.1K
0
C多线程网络库--xs

基于C多线程网络库,欢迎大家使用,例子在代码example目录下,以后我会再增加一些例子。 文档暂时没有,有问题请邮件我:-) 获取代码:https://github.com/xueguoliang/xs xs致力于1)多线程网...

薛国良
2013/05/01
4.4K
0
UnQlite 的 C++/Qt 移植版本--QUnQlite

UnQlite 的 C++/Qt 移植版本。 目前只是完成前期代码,将 Key/Value 存储移植过来,后续版本将继续移植 document 存储等内容。 UnQLite 是一个嵌入式的软件库,实现了自容器、无服务端、零配...

devbean-豆子
2013/05/24
1.2K
0
iOS 5+数据缓存模块--RequestCacher

RequestCacher 是一个 iOS 5+ 的数据缓存模块。 RequestCacher 可自动实现: 快速缓存数据 创建本地数据库用于跟踪所存储的数据 在本地存储上存储数据 需要的时候重新获取数据 自维护 使用方...

小编辑
2013/07/02
3.1K
1

没有更多内容

加载失败,请刷新页面

加载更多

发布新版首页“外婆新家”升级版:全新的UI,熟悉的味道

在7月30日我们我们忐忑不安地发布了新版网站首页,发布后迎接我们的不是新颜新风貌的惊喜,而是我们最担心的残酷现实——“让我们等这么多年,等来的就是这个新的丑容颜”,在大家的批评声中...

osc_8grrbqh4
11分钟前
0
0
markLine 标示线的使用

markLine 可以单独写在一个对象里,也可以接在其它数据下面,如果将 markLine 单独写在一个对象里,就必须加 type ,不然报错。 markLine 的 data 和其它 data 一样,也可以单独设置样式。 ...

osc_z3aalppw
13分钟前
0
0
新的日记 ~

新开一个日记本,以后都用这个好啦(真的以后都用这个了……)。 放一下旧的日记: 日记 2018 下半年:https://www.cnblogs.com/nanjoqin/p/9885681.html 日记 2019 上半年:https://www.cnb...

osc_tj0is418
15分钟前
0
0
ROC与AUC曲线绘制

由于ROC曲线面积比较难求得,所以判断模型好坏一般使用AUC曲线 关于AUC曲线的绘制,西瓜书上写得比较学术,不太能理解,假设有这么一个样本集: 假设预测样本为20个,预测为正类的概率已经进...

osc_votswz18
16分钟前
6
0
IDEA 2020.2 稳定版发布,带来了不少新功能...

点击上方“朱小厮的博客”,选择“设为星标” 后台回复"书",获取 来源 | https://www.oschina.net/news/117535/intellij-idea-2020-2-released IntelliJ IDEA 2020.2 稳定版已发布,此版本带...

osc_hr0pxr5d
18分钟前
7
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部