简体   繁体   English

如何使用 QT 为现有的 C++ 项目创建简单的 GUI? [等候接听]

[英]How to create a simple GUI with QT for an existing C++ project? [on hold]

I created a C++ project which has several functions to get some data, process them and produce an output.我创建了一个 C++ 项目,它有几个函数来获取一些数据,处理它们并生成一个 output。 I'd like to create a simple interface with few buttons that allows the user to press the button he wants and then starts the corresponding functions of my C++ project, which will run in background and will display on the GUI the final outcome.我想创建一个带有几个按钮的简单界面,允许用户按下他想要的按钮,然后启动我的 C++ 项目的相应功能,该项目将在后台运行并在 GUI 上显示最终结果。 How can I procede?我该如何进行?

  1. open QtCreator打开 QtCreator
  2. File -> new project -> qt widget application文件 -> 新项目 -> qt 小部件应用程序
  3. ctrl + R ctrl + R
  4. enjoy请享用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM