A newbie question about C, Kdevelop and QT Designer
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.
A newbie question about C, Kdevelop and QT Designer
I'm a 3 years php programmer which is trying to program in C for about 2 days :P
As i have already taken an 100 page basic tutorial (to learn syntax, how variables work etc) i would like to try some graphical programs.
Could someone explain to me what is Kdevelop and QT-Designer.
As i have seen, Kdevelop is a multi-language development program and QT-Designer is and IDE which, can be used for programing in C++. Is this correct?
If it is, so i should use QT-Designer to make my programs now?
Well, actually QT-Designer is just a GUI Builder for applications based on QT. QT itself is a quite complex library written in C++; it is mostly used for GUIs but provides a lot of other things, too. Have a look at its homepage for more infos: http://www.trolltech.com/products/qt/index.html
So you won't make whole programs with QT-Designer, but only their user frontends.
KDevelop on the other hand is a full IDE, so use this (or any other IDE, there are a lot of them) to develope your applications.
Oh, and another word on QT (just to avoid misconceptions): As I said, this is only a C++ library, so if you want to learn C, then this won't be the place to go.
First of all, thanks for the answer. I'm not confused anymore about this. But, about KDevelop. Do i have to insall anything to have an IDE? I mean, i use Debian and install it using apt-get install kdevelop3. But i can only see something like an text editor. I don't know how to edit my program using the IDE.
Odd C is just a text file to begin with. Unless you were looking for an aplication builder or something. Maybe so?
Begining with C i wouldent recommend jumping directly to gui programming but others learn diffrently. Ive learned syntax a while back and just now starting to dive into creating linked lists , ques , and trees.
An IDE is a collection of tools, that make software development easier. Actually all you really need is a text editor and a compiler, everything else is luxus and maybe part of an IDE; of course an IDE also has a text editor and uses a compiler. But the main-feature of an IDE probably is its project management. A project is a collection of source code files (that may depend on each other) as well as the settings to handle these. Without an IDE it may get very complex to compile/build a piece of software containing a lot of files an libraries. So an IDE should not only show you your files, but also provide an automated way to build it; i.e. through 'makefiles' and the corresponding programm 'make'.
What does all this mean? -It means: To use the power of an IDE you have to create a new project and add your source files into this. I don't use KDevelop so I don't know exactly how to set it up, but I guess, somewhere there is a menu entry like "New Project", or something like this. But if you want to use external libraries (like QT) you will also have to specify this in your project settings. The same is true for your compiler an its settings. All this maybe too much, if you do it the first time. So my advice is to search the web for a good KDevelop Tutorial (I'm sure that google will find one) an follow this to learn what's all about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.