LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   A newbie question about C, Kdevelop and QT Designer (http://www.linuxquestions.org/questions/programming-9/a-newbie-question-about-c-kdevelop-and-qt-designer-440004/)

stormrider_may 04-29-2006 10:01 AM

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?

Flesym 04-29-2006 11:23 AM

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.

stormrider_may 04-29-2006 01:35 PM

Flesym,

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.

exvor 04-29-2006 01:43 PM

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.

Flesym 04-29-2006 05:04 PM

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.


All times are GMT -5. The time now is 09:25 PM.