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

[Qt] how to create a Qt program by VS2013

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

1. First open VS2013, and then click New Project.

two。 Then select "Qt5 Projects" in the template on the left and "Qt Application" on the right

**

3. Then select the path you want to create at the location, and the name can be in both Chinese and English, but it is best to use English, and then click OK to create a Qt project.

4. Then a creation interface like this pops up.

-

5. The second item can also be kept by default.

6. The third option, className is the name you created earlier, but it is to be used as a class in Qt, so you can't use Chinese, you must use English. This is also the reason why we tried to use English as the name before, saving the change. When you modify Class name, the following four line edit boxes will be changed automatically

7. The Base class on the right is which class you create inherits, QMainWindow or QWidget, or QDialog. Inheritance is also a very important thing for C++. Then you can click OK.

8. After a while, the interface appears like this, there are more than n wavy lines, the solution is: Ctrl+F5, this is the shortcut key of VS, after a successful run, close the file, and then reopen it. There will be no wavy lines. The member functions of the class are also automatically loaded and displayed.

9. This is a golden sentence for computer friends, and it is also a new beginning!

10. Note that in VS: Ctrl+F7 is a quick compile and Ctrl+F5 is a quick run project. And then jumped out of a hello world!

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

Internet Technology

Wechat

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

12
Report