Download presentation
Presentation is loading. Please wait.
Published byRandolf Hopkins Modified over 6 years ago
1
C++11 in Qt 安晓辉
2
C++11 && Qt SDK介绍
3
C++11,documents http://www.open-std.org/jtc1/sc22/wg21/
draft 《The C++ Programming Language (4th Edition)》 ( 《C++ Primer Plus (Sixth Edition)》 The C++ Standard Library: A Tutorial and Reference (2nd Edition) C++11 standard library reference)
4
C++11 compiler supports GCC 4.8.1 VS 2008 / 2010 / 2012 / 2013 / 2015
Clang 3.3
5
C++11 in Qt SDK Qt SDK, mingw Qt SDK, VS
mingw use gcc, gcc 4.8 && later support C++11 type “gcc –v” to check gcc version Qt SDK, VS VS 2010, VS 2012, VS 2013
6
Enable C++11 in Qt http://download.qt.io/archive/qt/
MSVC version,nothing to do gcc & clang, need “-std=c++0x” in Qt Creator and pro:CONFIG += c++11
7
Hello C++11 in Qt Qt SDK, mingw Qt Console App CONFIG += c++11
#include <QCoreApplication> #include <vector> #include <QDebug> int main(int argc, char *argv[]) { std::vector<int> intArray = {1, 2, 3, 4, 5}; qDebug() << "elements int vector:"; for( auto it = intArray.begin(); it != intArray.end(); ++it){ qDebug() << *it; } return 0; Qt SDK, mingw Qt Console App CONFIG += c++11
8
topics 初始化 nullptr && static_assert override and final
type inference(auto && decltype) range-based for loop lambda Qt connect misc about c++11 in Qt
9
THANKS 本课程由 安晓辉(foruok)提供 CSDN网站:www.csdn.net
企业服务: 人才服务: CTO俱乐部: 高校俱乐部: 程序员杂志: CODE平台: 项目外包: CSDN博客: CSDN论坛: CSDN下载:
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.