This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Confused about API

Tags: None
(comma "," separated)
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

Confused about API

Tue Oct 14, 2008 7:05 am
I would like to start developing for KDE4. But I've noticed something about the development.

Some of the functions are not really commented. Not enough tutorials. I've discussed in the #kde-devel channel about this. I know not all of Qt's classes are in KDE's own classes, for example KString instead of QString. I know its not all necessary to implement all of Qt classes. But there is not list of the equivalent Qt classes in KDE. Which in my opinion are hard to find by hand. I understand some of Qt. But not enough to know when to use KDE or when to use Qt.

I just feel that beginners like me will find it very difficult to switch to the KDE api instead of Qt.

[edit: fixed spelling errors]

Last edited by ComaWhite on Tue Oct 14, 2008 7:08 am, edited 1 time in total.


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar
dimsuz
KDE Developer
Posts
18
Karma
0
OS

RE: Confused about API

Tue Oct 14, 2008 7:39 am
Have you looked at http://techbase.kde.org and http://api.kde.org?
There are plenty of tutorials there. Another source of knowledge is looking at other programs, how they're written.
People on irc can help you to get started too. So the main thing here is you wanting to get started - go ahead :)

(btw, there's no KString ;))


One day Alice came to a fork in the road and saw a Cheshire cat in a tree. "Which road do I take?" she asked. "Where do you want to go?" was his response. "I don't know", Alice answered. "Then", said the cat, "it doesn't matter."
(c) Lewis Carroll
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: Confused about API

Tue Oct 14, 2008 8:11 am
Yeah I noticed. They told me "If there is no Qt one of KDE use Qt". But its hard to even look. Yeah I've looked at those already and not really all that helpful just a little helpful. Don't get me wrong. I'm not dissing KDE or anything. Just giving some feedback :)


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar
dimsuz
KDE Developer
Posts
18
Karma
0
OS

RE: Confused about API

Tue Oct 14, 2008 8:15 am
Well, I guess it will be more productive to just start and then ask questions as they arise :)
Of course, docs are not perfect, but they can always be improved.


One day Alice came to a fork in the road and saw a Cheshire cat in a tree. "Which road do I take?" she asked. "Where do you want to go?" was his response. "I don't know", Alice answered. "Then", said the cat, "it doesn't matter."
(c) Lewis Carroll
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: Confused about API

Tue Oct 14, 2008 8:53 am
Most important one I'm wondering about is OpenGL if there is a widget for that like QGLWidget? IF there is one in KDE


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
User avatar
dimsuz
KDE Developer
Posts
18
Karma
0
OS

RE: Confused about API

Tue Oct 14, 2008 9:04 am
No, there's no such widget in kdelibs, but there's a separate project that may be of interest to you - KGLEngine. Google for it, you'll find it :)
Also, you can visit our games channel #kdegames at irc.freenode.net, kglengine devs usually hang out there.


One day Alice came to a fork in the road and saw a Cheshire cat in a tree. "Which road do I take?" she asked. "Where do you want to go?" was his response. "I don't know", Alice answered. "Then", said the cat, "it doesn't matter."
(c) Lewis Carroll
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS

RE: Confused about API

Wed Oct 15, 2008 7:30 am
ComaWhite wrote:Yeah I noticed. They told me "If there is no Qt one of KDE use Qt". But its hard to even look. Yeah I've looked at those already and not really all that helpful just a little helpful. Don't get me wrong. I'm not dissing KDE or anything. Just giving some feedback :)


Hi,

Perhaps you start with http://techbase.kde.org/Development/Tutorials/First_program and the following pages. With this tutorial you learn the main difference between a QApplication and a KApplication. It is not so important whether you are using KLineEdit instead of QLineEdit. Also, there are tools like krazy2, which can check your code for these classes. It informs you about classes, where you should use the K-class. So, it is more an iterative process.

Cheers, m


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS

RE: Confused about API

Wed Oct 15, 2008 1:50 pm
oh sweet. thank you very much.


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]