Simple GUI for C ++

What is the simplest structure / IDE that fulfills all of the following criteria? If such a thing does not exist, then which is the closest?

  • compiles c ++
  • installed without problems
  • works under Windows or Linux (1 of them is enough)
  • allows you to write text to the terminal and simultaneously draw graphics
  • Hello world is short, about 10 lines for drawing the code of the simplest graphic point
  • has a built-in makefile or something like that
  • has an editor for several files and with code completion (for example, MSVS)
  • help or tutorials match the installed version
+3
source share
4 answers

QT, ? IDE (http://qt-project.org/doc/qt-5/topics-app-development.html), GUI "Hello World" :

http://qt-project.org/wiki/Qt_for_beginners_Hello_World

 #include <QApplication>
 #include <QPushButton>

 int main(int argc, char *argv[])
 {
     QApplication app(argc, argv);

     QPushButton hello("Hello world!");
     hello.resize(100, 30);

     hello.show();
     return app.exec();
 }

/ IDE .

+6

Qt framework + Qt Creator IDE.

+4

Qt , .:)

:

, LGPL. ..

, .

+1

, fltk:

http://www.fltk.org/

  • ++
  • It works on different platforms.
  • GPL
  • It's very fast
  • No special make is required for this.
  • It also provides FLUID, a user interface generator.

As I said, it would be worth a look. If you want a more professional solution, Qt is likely to be a better solution, along with Gtk -

http://www.gtkmm.org/

+1
source

Source: https://habr.com/ru/post/1760285/


All Articles