+ 1

Button In C++

I was wondering how I can make a button in C++

5th Aug 2025, 3:22 PM
Ashton Hively
Ashton Hively - avatar
3 Answers
+ 1
I would recommend learning about Qt a popular choice to build smooth n fast GUI application easily. But if you ask for pure cpp I remember using Windows.h in visual studio but I don't remember the exact code as I did drag n drop... a reference to exact code that can be used in visual studio: https://www.sololearn.com/Discuss/2672709/?ref=app
5th Aug 2025, 3:43 PM
Snehil Pandey
Snehil Pandey - avatar
0
If you are on Linux, you can easily create buttons in C++ using Qt Creator, but if you are on Windows, you should use Visual Studio Code an C# winforms. C++ is no longer the preferred choice if you want to create desktop applications on Windows. Microsoft actually wants developers to use C# and not C++.
5th Aug 2025, 9:42 PM
Jan
Jan - avatar
0
It's not about what Microsoft wants, it's about what can be done. C++ Qt is cross platform and run across all major devices (not sure of phones) and Qt6 UI is modern, uses a Css syntax styling and with advanced widget like carousels etc
6th Aug 2025, 7:10 AM
RuntimeTerror
RuntimeTerror - avatar