ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello.I wanna use gtk to build a GUI application.after reading the gtk tutorial, i don't know where to start.My question are:
1. Is the gtk has been installed in Linux or user have to download it and install?
2. Is .gtk a program as Qt or just a library?
3. where to write the coding.Is it in the console/terminal?
1. GTK would be installed if you chose to install it when you installed your distro. If you installed GNOME, you'd probably have it installed.
2. I think it's just a library. Qt is a library too, AFAIK (but it does come with an application to develop GUI apps. I think it's called Qt Develop/Designer or something).
3. You write code in any text editor (vi, emacs, gedit, etc), save it and then compile.
Someone can correct me if I'm wrong about any of the above.
1. gtk has to be installed unless it was installed by the distro
2. gtk is just a library set no graphical interface like qt-dev
3. codeing is right into your c program or c++ program
when i want to set a button to act as "Send" and anothe one as "Save", is it in gtk has the callback function for them. For examples, quit has "gtk_main_quit();". Can anybody tell me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.