2014年02月12日 星期三 11:07
《An Introduction to Design Patterns in C++ with Qt 4》书籍的作者说:Using C++ with Qt comes very close to Java in ease of use, comprehensiveness, and convenience. It significantly exceeds Java in the areas of speed and efficiency, making everything from processing-intensive server applications to high-speed graphics-intensive games possible.
一般来说,使用Qt后,可以抛开STL,在某种程度上,抛开STL是必也要的。( In fact, to take full advantage of Qt’s power and simplicity, we tend to abandon the Standard Library entirely.)。
Qt-Creator是Qt配套的IDE,但Qt-Creator也是一个通用的C、C++ IDE,可以开发任何通用的C++项目。Qt-Creator可以跨平台运行,集成Qt的帮助文档,非常好用。
我们首先创建一个简单的Qt Console Application,然后在main.cpp进行编辑,代码示例如下:
#include <QCoreApplication> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); qDebug() << "Hello World\n"; return a.exec(); }
然后按Ctrl + R来编译和运行。
参考资料:
Zeuux © 2024
京ICP备05028076号