- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
开发环境的搭建和hello world版权声明
该文章原创于Qt爱好者社区(),作者yafeilinux,转载请注明出处!导语
从这一篇我们正式开始Qt编程。本篇主要讲解Qt编程环境的搭建。为了适应大多数读者的需要,同时为了避免系统环境的不同而产生不必要的问题,这里选择使用Windows系统的Qt版本。因为在前面几十篇中我们主要讲解基本Qt控件项目的桌面编程,所以没有使用SDK进行安装,而是采用了Qt库与Qt Creator分别下载安装的方式,这样就只需要下载Qt的桌面版本的库。而SDK中默认集成了Qt Creator和Qt桌面库以及Qt移动开发的库,这个会在第40篇至第50篇进行讲解。再者,鉴于Qt一次编写代码,多次编译运行的特点,在我们教程中讲解的例子都是可以直接在其他系统环境下(比如Linux系统)直接编译运行的。在前40篇中我们的环境是:Windows 7 + Qt 4.8.1 + Qt Creator 2.4.1目录
一、Qt 及 Qt Creator的下载和安装二、创建hello world程序正文
一、Qt 及 Qt Creator的下载和安装1.下载下载Qt 4.8.1:/qt/source/qt-win-opensource-4.8.1-mingw.exe下载Qt Creator 2.4.1:/qtcreator/qt-creator-win-opensource-2.4.1.exe(提示:大家可以在/qt/source/下载Qt的各个版本,可以在/qtcreator/下载Qt Creator的各个版本。)提示:在最近的Qt Creator版本(2.5.0及以后)中已经默认不再包含MinGW,需要自己手动下载安装。
Note for Windows MinGW Users
We decided to remove the custom MinGW distribution and MinGW gdb from our Qt Creator-only Windows binary distribution package. The original reasons to include it there (it was the predecessor of the Qt SDK) are since a while now filled by the Qt SDK. Also, updating the shipped version is a legal hassle as long as the binaries are provided through Nokia, but we also don’t want to ship stone age versions. We are working on build infrastructure for the Qt Project itself though, that we ultimately want to use to build Qt Creator packages, snapshots, and more. Currently, on , you find Qt Creator snapshots for Linux and Windows, and also a Python enabled MinGW gdb (that reportedly doesn’t work on Windows XP). It’s still possible to install MinGW and gdb separately and register them in Qt Creator. We are?not?removing the support for it from Qt Creator.
Previously shipped MinGW:?/misc/MinGW-gcc440_1.zipPreviously shipped MinGW gdb:?/misc/gdb/7.2/qtcreator-gdb-7.2-mingw-x86.zip
Up to date MinGW:??(we might provide a compact version like the one in the old installer later)Python enabled MinGW gdb 7.4:?/job/gdb-windows/?(compiled on Windows 7, doesn’t work on Windows XP)
2.安装下载完成后先安装Qt Creator,采用默认选项即可,安装路径推荐使用默认的C盘,因为这样可以与教程中的一
文档评论(0)