LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2007, 06:02 AM   #1
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Rep: Reputation: 15
How do I program programs for kde?


I want to learn to program programs for kde, but where should I start? I heard a new version of kde is coming, is the language different? help
 
Old 02-05-2007, 06:07 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
KDE is based on the QT GUI framework. The new version of KDE (currently in development) is based on QT4, whereas the current KDE is based on the older version, QT3.

You have a choice of languages - which would you like to use. probably the most flexible and powerful is to use C++ since that is the native language of QT. However, there are quite complete bindings to other languages, for example python.

I'd start by searching for a tutorial of QT in the language you want to use, and once you know about QT, start to explore the KDE libraries.
 
Old 02-05-2007, 06:10 AM   #3
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Original Poster
Rep: Reputation: 15
OK, thanks, I think I saw a tutorial from a trolltech or something to do with qt, maybe I should follow that.
 
Old 02-05-2007, 06:41 AM   #4
inverted.gravity
Member
 
Registered: Feb 2006
Location: Sweden
Distribution: Archlinux
Posts: 112

Original Poster
Rep: Reputation: 15
My friend told me that I should learn C instead of c++, what should I do?
 
Old 02-05-2007, 06:44 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
That would be a good place to start. QT is a very nice framework - it's easy to learn and extremely powerful. Another very strong reason to try it is that is it cross platform. Once you have an app written in QT, it's easy to port it to the Mac or Windows. The current KDE is not cross platform, so if you use KDE features in your program, it won't be portable. However, KDE4 (the forthcoming version which uses QT4) will be portable. It will be interesting to see KDE running on a windows box.
 
Old 02-05-2007, 07:58 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by inverted.gravity
My friend told me that I should learn C instead of c++, what should I do?
If you want to program for KDE, then learn C++, python and maybe ruby. C is not used very much in KDE although its the language of choice in GNOME and the Linux Kernel.
 
Old 02-05-2007, 08:11 AM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
C++ is a superset of C, so if you learn C++, you're learning C into the bargain. That's probably not quite fair because C++ and C programs tend to have different designs, but if you're just interested in syntactical stuff, C++ will teach you basic C syntax.
 
Old 02-05-2007, 02:07 PM   #8
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
I have a question thats related: Is OpenGL with QT possible? and will it be easily portable(more specifically to MS Windows from Linux)?

Thanks
 
Old 02-05-2007, 03:36 PM   #9
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Yes you can do OpenGL with QT. There are several examples which ship with QT4. Should be portable AFAIK.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to compile kde 3.4.2 on Etch. Problem: kde-config program not found Yury Debian 4 03-30-2010 04:32 PM
which program will monitor another programs memory usage? zidane_tribal Linux - Software 3 06-17-2006 05:56 PM
Running programs from a C++ program... audibel Programming 1 03-08-2005 07:33 PM
Dumb Question - What programs in Linux are there for me to program in C/C++? eBopBob Linux - Software 9 02-28-2004 03:47 AM
XFCE - where are all my programs, no program icon in the panel. coolwater Linux - Newbie 8 12-23-2003 08:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration