How do I program the GUI in C++?

Asked 1 years ago, Updated 1 years ago, 102 views

Recently, I learned C++, and I realized that I had to do GUI programming to make something that actually looked like a program. I looked into the data, and there were a lot of them I'm learning something called Qt, is it okay? And I heard that Qt is not a good match for games First of all, we are learning Unity together, but Unity is C#. I know that C++ is not available in UNI.T, so what should I use for the game?

c++ gui qt unity

2022-09-22 20:32

2 Answers

QT is a cross-platform GUI development toolkit. Easy to deploy to heterogeneous platforms such as Windows, Linux, and Mac.

The development toolkit for Windows corresponding to the QT can be viewed as MFC. Both QT and MFC are good toolkits for implementing GUI applications with C++.

But it's not optimized for game development. The GUI, which is usually used for game development, does not use the platform UI, but is implemented and used directly or the UI library for game development.

Therefore, GLUT or GLFW can be used instead of QT when developing games You can use WinApi instead of MFC.

Of course, games can be developed with QT or MFC, but they use lighter APIs to boost game performance.

If you're going to use a game engine, many engines already have a UI system implemented, so you can benchmark it and decideh


2022-09-22 20:32

You want to make a game.

Game development and GUI programming are very different. Games are mainly developed using game engines, and Unity is also a kind of game engine.

Therefore, if you want to develop a game with C++, you can use a game engine based on C++.

Most game engines are based on C++. Indie developers have game engines that can be used for free or at a low cost.

Please refer to things like Unreal Engine.

https://www.unrealengine.com/ko/what-is-unreal-engine-4


2022-09-22 20:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.