Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

C++ to Qt compilation process method

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

C++ to Qt

Qt is the library of C++, and Qt extends it a little bit based on ansi C++.

But the domestic seems to be more impetuous, a lot of people who learn Qt even don't seem to know how to compile the basic C++. This article abandons the shackles of IDE or qmake, cmake and other tools, and tries to transition from the compilation of C++ to the compilation of Qt step by step through a few examples.

This article deals with the most basic things, perhaps it can be said that as long as you use C++ Qt, no matter which tool (qmake, cmake, boost.build, qtcreator, vs2008, Eclipse,...), the content of this article needs to be understood (although when we really write programs, we will not directly use the C++ compiler to compile Qt programs).

If you are afraid of the command line.

Example 1: a simple console program

A very simple example that doesn't use the Qt extension: (that is, this is a normal C++ program)

# include # include int main (int argc, char** argv) {QCoreApplication app (argc, argv); qDebug ()

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report