Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ open window hello world

Tags:

c++

window

How can you write a C++ program to open a window like this one... alt text

Is it possible or can apps only be ran from the command line?

I'm using the G++ compiler... Do I need something else like visual studio?

Can I do it just by writing code?

like image 489
Mark Lalor Avatar asked Oct 14 '25 08:10

Mark Lalor


2 Answers

Take a look at Qt which is a cross-platform framework that easily builds GUIs.

Then check out a Qt tutorial, do a google search. Here is one that will get you to "hello world"

Also, you might want to check out Code::Blocks as an IDE. It will use your already installed g++ compiler.

like image 73
Dennis Miller Avatar answered Oct 16 '25 21:10

Dennis Miller


You can use Borland C++, Visual C++ they has GUI or wxWindow or GTK library.

like image 41
jcubic Avatar answered Oct 16 '25 20:10

jcubic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!