Promo/Kdelibs: Difference between revisions
start of a page to document the "why kdelibs?" thread |
added a bunchastuff |
||
Line 1: | Line 1: | ||
So, what's so great about the KDE Platform? Why should Qt developers use our libraries? | |||
What's here so far is a dump of the "why kdelibs?" thread. it needs cleaning up and filling in. | |||
==notes== | |||
Back on the "why kdelibs?" topic, what about a KDE-Demo, just like Qt | |||
Demo, that shows the unique features the KDE platform (kdelibs, | |||
kdepimlibs, kdegames, etc) has to offer? That'd be a quick way for | |||
people to see the widgets, libraries, etc that make KDE rock. It'd be | |||
certainly easier than delving into api.kde.org and see if Joe | |||
Developer finds some interesting class/library/whatever. The examples | |||
in kdeexamples and Techbase could be a starting point. | |||
==KDElibs== | |||
In general, we provide lots of convenience classes and methods for things that | |||
are either awkward to do in Qt, or you have to do yourself. We also provide workspace integration and consistency. | |||
===KIO=== | ===KIO=== | ||
Line 15: | Line 30: | ||
===KConfig=== | ===KConfig=== | ||
QSettings' implementation of groups is a joke: | |||
settings.beginGroup("foobar"); | |||
// everything written now will be in that group | |||
settings.setValue("myValue", ...); | |||
settings.endGroup(); | |||
To read it: | |||
settings.value("foobar/myValue"); | |||
I much prefer the KConfig way of doing this: | |||
grp = settings->group("foobar"); | |||
grp->writeEntry("bar", ...); | |||
To read it: | |||
grp = settings->group("foobar"); | |||
grp->readentry("bar", ...); | |||
Much more straight forward and easier for big applications (like KDevelop) | |||
with plugins. The plugin would just take some KConfigGroup ptr and save it's | |||
settings there, no need to come up with some unique name or anything, the | |||
parent app could handle that. | |||
===KJobs + ThreadWeaver=== | |||
ThreadWeaver is reliable and using KJobs is easy and straight forward. | |||
The API is also really good to work with. | |||
QtConcurrent has imo a strange custom api and I heard that it's not a good | |||
implementation from people that know a lot about concurrency. | |||
QtConcurrent is meant for massively parallel number crunching on university servers, not really for gui applications, iirc. | |||
===consistency=== | |||
I get consistent ui design and functionality, making it easy to use | |||
applications. One of my favurites is KAction and the standard actions and | |||
shortcuts and dialogs. Many KDE apps uses KXMLGUI, which provides a consistent | |||
menu structure. I get kde widgets for a lot of things, so i know how to use | |||
them. I love all that, and whenever i find some non-KDE application that I | |||
need, I find myself wishing that it was KDE, or that there would be a KDE | |||
alternative... | |||
Of course there is also the high level of integration in KDE, and do not | |||
forget world class file dialogs. I miss those in non-KDE apps too! | |||
* Proper localization of Calendar Systems, i.e. your app will play nicer in | |||
foreign countries | |||
* Far more date formatting options than Qt has | |||
* Proper timezone handling | |||
* World's best File Dialog. | |||
* Extra features added to the print dialog on *nix that Qt seems to have no | |||
interest in supporting | |||
* Unit Conversion library, e.g. km <-> miles | |||
* All that Semantic stuff | |||
* GUI widgets that integrate all this good stuff so you don't have to | |||
* A holidays library that no other platform has an equivalent for | |||
===KAction=== | |||
... | |||
===KXmlGui=== | |||
provides a consistent menu structure | |||
==kdesupport== | |||
i'm not sure what parts of kdesupport are written by kde and which aren't, but I'll include those mentioned in the thread anyways: | |||
===Automoc=== | |||
Automoc can be used independent from KDE: | |||
http://techbase.kde.org/Automoc4 | |||
==other stuff== | |||
KShell helpers - what are these? FIXME | |||
K* ui widgets, most notably KUrlRequester | |||
KParts esp. KTextEditor | |||
KStandardActions? | |||
localisation | |||
Kross |
Revision as of 17:11, 2 November 2010
So, what's so great about the KDE Platform? Why should Qt developers use our libraries?
What's here so far is a dump of the "why kdelibs?" thread. it needs cleaning up and filling in.
notes
Back on the "why kdelibs?" topic, what about a KDE-Demo, just like Qt Demo, that shows the unique features the KDE platform (kdelibs, kdepimlibs, kdegames, etc) has to offer? That'd be a quick way for people to see the widgets, libraries, etc that make KDE rock. It'd be certainly easier than delving into api.kde.org and see if Joe Developer finds some interesting class/library/whatever. The examples in kdeexamples and Techbase could be a starting point.
KDElibs
In general, we provide lots of convenience classes and methods for things that are either awkward to do in Qt, or you have to do yourself. We also provide workspace integration and consistency.
KIO
network and file-archive transparency.
KIO provides easy transparent, abstract, async, reliable & fast support for quite some protocols. Qt has to offer nothing like this. (the QNetwork module is nice, but not comparable at all - sorry trolls)
Solid
recent incident? FIXME
KConfig
QSettings' implementation of groups is a joke:
settings.beginGroup("foobar"); // everything written now will be in that group settings.setValue("myValue", ...); settings.endGroup();
To read it: settings.value("foobar/myValue");
I much prefer the KConfig way of doing this: grp = settings->group("foobar"); grp->writeEntry("bar", ...);
To read it: grp = settings->group("foobar"); grp->readentry("bar", ...);
Much more straight forward and easier for big applications (like KDevelop) with plugins. The plugin would just take some KConfigGroup ptr and save it's settings there, no need to come up with some unique name or anything, the parent app could handle that.
KJobs + ThreadWeaver
ThreadWeaver is reliable and using KJobs is easy and straight forward. The API is also really good to work with. QtConcurrent has imo a strange custom api and I heard that it's not a good implementation from people that know a lot about concurrency.
QtConcurrent is meant for massively parallel number crunching on university servers, not really for gui applications, iirc.
consistency
I get consistent ui design and functionality, making it easy to use applications. One of my favurites is KAction and the standard actions and shortcuts and dialogs. Many KDE apps uses KXMLGUI, which provides a consistent menu structure. I get kde widgets for a lot of things, so i know how to use them. I love all that, and whenever i find some non-KDE application that I need, I find myself wishing that it was KDE, or that there would be a KDE alternative...
Of course there is also the high level of integration in KDE, and do not forget world class file dialogs. I miss those in non-KDE apps too!
- Proper localization of Calendar Systems, i.e. your app will play nicer in
foreign countries
- Far more date formatting options than Qt has
- Proper timezone handling
- World's best File Dialog.
- Extra features added to the print dialog on *nix that Qt seems to have no
interest in supporting
- Unit Conversion library, e.g. km <-> miles
- All that Semantic stuff
- GUI widgets that integrate all this good stuff so you don't have to
- A holidays library that no other platform has an equivalent for
KAction
...
KXmlGui
provides a consistent menu structure
kdesupport
i'm not sure what parts of kdesupport are written by kde and which aren't, but I'll include those mentioned in the thread anyways:
Automoc
Automoc can be used independent from KDE: http://techbase.kde.org/Automoc4
other stuff
KShell helpers - what are these? FIXME K* ui widgets, most notably KUrlRequester KParts esp. KTextEditor KStandardActions? localisation Kross