0

I have been using visual studio in the past now i have started with eclipse it is a good IDE

My question is: I want to know is there anything similar to WindowBuilder for eclipse but for C++ specific I want a widget toolkit that has drag and drop functionality that can be used inside eclipse for building GUI for my desktop apps

i want option both for GTK+, X and QT (QT is strange to me, I love GTK though)

Please also tell me if i can compile my GUI for Windows and linux both I have already installed MinGW for that I want something that works in the visual studio fashion but with eclipse as this is a cross-platform GUI

I want something that has drag and drop functionality for widgets in the perspective itself!!

also tell me (if such product exists) if i can compile that same program/GUI for other OS'es as well like for Mac, Windows and Linux/UNIX

and do i have to pre-install the GTK on the target environment?

2 Answers2

1

You need Glade. Its a GUI builder for GTK. It is a standalone app. You do not really need to have it integrated with eclipse, since it generates an xml file, and the only thing you need to is load the file. Personally I use Glade 2, an earlier version that generates C source, and standard make files which should be compatible with eclipse.

malaugh
  • 167
  • 6
0

You don't need Eclipse to develop a GTK application. You'll better use a good editor (emacs or gedit) to edit your source file.

You could also consider using geany.

If your GTK application is small and in one single source file foogtk.c, you can compile it (on the terminal) with one single command, e.g.

 gcc -Wall -g foogtk.c $(pkg-config --cflags --libs gtk+-3.0) -o foogtk

If your application is made of several source files, use a builder like GNU make

See also this and that answers.

Mixing GTK and Qt in the same application is not reasonable. Choose either GTK (with C) or Qt (with C++).

You may want to use GTKmm as a C++ wrapper to GTK if you really want to code GTK applications in C++

PS. If the question is a tool to design interactively your GUI, consider glade for GTK and Qt Creator & Qt Designer for Qt.

Community
  • 1
  • 1
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547