Development/Tutorials: Difference between revisions

From KDE TechBase
(Move DCOP to D-Bus tutorial to deprecated)
(→‎Shell: Use link to moved section for moved pages)
 
(45 intermediate revisions by 9 users not shown)
Line 1: Line 1:
These tutorials were updated and moved to https://develop.kde.org/docs/
[[Category:MovedDevelop]]
Below is the old version of this wiki page.
<languages />
<languages />


Line 8: Line 17:
== Basics of how to develop with KDE Frameworks == <!--T:3-->
== Basics of how to develop with KDE Frameworks == <!--T:3-->


<!--T:4-->
These tutorials were moved to [https://develop.kde.org/docs/getting-started/kxmlgui/ Getting Started with KXmlGui].
Are you interested in writing applications with KDE Frameworks? This tutorial series is aimed at those completely new to it.
Not yet moved pages:
</translate>
<!--T:4--></translate>
;[[Special:myLanguage/Development/Tutorials/First program|<translate><!--T:5-->
Hello World</translate>]]
:<translate><!--T:6-->
An introduction to the very basics of KDE Frameworks programming</translate>
;[[Special:myLanguage/Development/Tutorials/Using KXmlGuiWindow|<translate><!--T:7-->
Creating the Main Window</translate>]]
:<translate><!--T:8-->
This tutorial shows you the magic of an application's most important thing: The main window.</translate>
;[[Special:myLanguage/Development/Tutorials/Using Actions|<translate><!--T:9-->
Using Actions</translate>]]
:<translate><!--T:10-->
How to add actions to the menus and toolbars. Based on the MainWindow tutorial.</translate>
;[[Special:myLanguage/Development/Tutorials/Saving and loading|<translate><!--T:13-->
Saving and Loading</translate>]]
:<translate><!--T:14-->
Introduces the KIO library while adding loading and saving support to our application.</translate>
;[[Special:myLanguage/Development/Tutorials/CommandLineArguments|<translate><!--T:17-->
Command line arguments</translate>]]
:<translate><!--T:18-->
Adds the ability to specify which file to open from the command line to our text editor.</translate>
;[[Special:myLanguage/Development/Tutorials/Common Programming Mistakes|<translate><!--T:21-->
;[[Special:myLanguage/Development/Tutorials/Common Programming Mistakes|<translate><!--T:21-->
Common Programming Mistakes</translate>]]
Common Programming Mistakes</translate>]]
Line 38: Line 27:
== Integrating with Workspaces ==
== Integrating with Workspaces ==


;[[Special:myLanguage/Development/Tutorials/Session_Management|<translate><!--T:29-->
These tutorials were moved to [https://develop.kde.org/docs/features/ Features]. Not yet moved pages:
Session Management</translate>]]
 
:<translate><!--T:30-->
Make your application aware of X sessions</translate>
;[[Special:myLanguage/Development/Tutorial/Icons|<translate><!--T:31-->
;[[Special:myLanguage/Development/Tutorial/Icons|<translate><!--T:31-->
Icons</translate>]]
Icons</translate>]]
:<translate><!--T:32-->
:<translate><!--T:32-->
Deliver your application with icons that are automatically installed to the right places. Based on the [[Development/Tutorials/Using_KActions|Kaction Tutorial]].</translate>
Deliver your application with icons that are automatically installed to the right places. Based on the [https://develop.kde.org/docs/getting-started/kxmlgui/using_actions/ Kaction Tutorial].</translate><translate>
;[[Special:myLanguage/Development/Tutorials/Desktop_File|<translate><!--T:33-->
Desktop File</translate>]]
:<translate><!--T:34-->
Let your application show up in the K menu and in application menus. Based on the Icons Tutorial.


== Managing Configuration Data With KConfig == <!--T:43-->
== Managing Configuration Data With KConfig == <!--T:43-->
These tutorials were moved to [https://develop.kde.org/docs/features/configuration/ Configuration]. Not yet moved pages:


</translate>
</translate>
;[[Special:myLanguage/Development/Tutorials/KConfig|<translate><!--T:44-->
Introduction To KConfig</translate>]]
:<translate><!--T:45-->
An overview of the KConfig classes and how to use them in your application code</translate>
;[[Special:myLanguage/Development/Tutorials/Using KConfig XT|<translate><!--T:46-->
Using KConfig XT</translate>]]
:<translate><!--T:47-->
Tutorial on how to efficiently use the KConfig XT framework.</translate>
;[[Special:myLanguage/Development/Tutorials/Updating KConfig Files|<translate><!--T:48-->
;[[Special:myLanguage/Development/Tutorials/Updating KConfig Files|<translate><!--T:48-->
Updating KConfig Files</translate>]]
Updating KConfig Files</translate>]]
Line 131: Line 108:
=== D-Bus === <!--T:86-->
=== D-Bus === <!--T:86-->
</translate>
</translate>
; [[Special:myLanguage/Development/Tutorials/D-Bus/Introduction|<translate><!--T:87-->
 
Introduction to D-Bus</translate>]]
These tutorials were moved to [https://develop.kde.org/docs/features/d-bus/ D-Bus]. Not yet moved pages:
:<translate><!--T:88-->
A straight-forward introduction to the core concepts in D-Bus from an application developer's perspective, this tutorial covers what D-Bus is and how it can be used by applications.</translate>
; [[Special:myLanguage/Development/Tutorials/D-Bus/Accessing Interfaces|<translate><!--T:89-->
Accessing D-Bus Interfaces</translate>]]
:<translate><!--T:90-->
A step-by-step guide to calling D-Bus methods and connecting to D-Bus signals using QtDBus.</translate>
; [[Special:myLanguage/Development/Tutorials/D-Bus/Intermediate_D-Bus|<translate><!--T:91-->
; [[Special:myLanguage/Development/Tutorials/D-Bus/Intermediate_D-Bus|<translate><!--T:91-->
Intermediate D-Bus</translate>]]
Intermediate D-Bus</translate>]]
Line 157: Line 128:


<translate>
<translate>
=== Konqueror === <!--T:101-->
 
=== Dolphin === <!--T:101-->
</translate>
</translate>
; [[Special:myLanguage/Development/Tutorials/Creating Konqueror Service Menus|<translate><!--T:102-->
 
Creating Konqueror Service Menus</translate>]]
These tutorials were moved to [https://develop.kde.org/docs/apps/dolphin/ Dolphin].
:<translate><!--T:103-->
This tutorial shows you how to create mimetype-specific actions in Konqueror's context menu (aka "servicemenus").</translate>


=== Kross ===
=== Kross ===
Line 191: Line 161:
Simple demonstration on how to extend you application menus to execute script files.</translate>
Simple demonstration on how to extend you application menus to execute script files.</translate>
; [[Special:myLanguage/Development/Tutorials/Kross/ActionCollections|<translate><!--T:116-->
; [[Special:myLanguage/Development/Tutorials/Kross/ActionCollections|<translate><!--T:116-->
How to use an ActionCollection ]</translate>]
How to use an ActionCollection</translate>]]
:<translate><!--T:117-->
:<translate><!--T:117-->
A small Tutorial on How to use Kross::ActionCollections.
A small Tutorial on How to use Kross::ActionCollections.</translate>
{{:Projects/Calligra/Plugin Tutorials}}
{{:Projects/Calligra/Plugin Tutorials}}
</translate>
<translate>
<translate>
=== System Activity === <!--T:121-->
=== System Activity === <!--T:121-->
</translate>
</translate>


: [[Special:myLanguage/Development/Tutorials/SystemActivity/Scripting|<translate><!--T:122-->
; [[Special:myLanguage/Development/Tutorials/SystemActivity/Scripting|<translate><!--T:122-->
Writing script actions for the process's context menu</translate>]]
Writing script actions for the process's context menu</translate>]]
:<translate><!--T:123-->
:<translate><!--T:123-->
Line 209: Line 177:
</translate>
</translate>


: [[Special:myLanguage/Development/Tutorials/KWin/Scripting<translate><!--T:125-->
These tutorials were moved to [https://develop.kde.org/docs/plasma/kwin/ KWin Scripting Tutorial]. Not yet moved pages:
|KWin Scripting Tutorial</translate>]]
:<translate><!--T:126-->
This tutorial shows how to write a useful script for KWin.


<!--T:300-->
<translate><!--T:300-->
: [[Development/Tutorials/KWin/WindowSwitcher|QML Window Switcher Layouts]]
; [[Development/Tutorials/KWin/WindowSwitcher|QML Window Switcher Layouts]]
: This tutorial documents the new QML layouts for the KWin Window Switcher
: This tutorial documents the new QML layouts for the KWin Window Switcher


Line 229: Line 194:
:<translate><!--T:131-->
:<translate><!--T:131-->
Kontact plugins are KParts. This tutorial describes how you can write one.</translate>
Kontact plugins are KParts. This tutorial describes how you can write one.</translate>
; [[Special:myLanguage/Development/Tutorials/Writing Qt Designer Plugins|<translate><!--T:132-->
; [https://community.kde.org/Get_Involved/development/Tutorials/Writing_Qt_Designer_Plugins <translate><!--T:132-->
Writing Qt Designer Plugins</translate>]]
Writing Qt Designer Plugins</translate>]
<translate><!--T:133-->
<translate><!--T:133-->
:Add your widgets to Qt Designer and thus make them usable in UI files.
:Add your widgets to Qt Designer and thus make them usable in UI files.
Line 259: Line 224:
</translate>
</translate>


; [[Special:myLanguage/Development/Tutorials/KAuth/KAuth_Basics|<translate><!--T:149-->
These tutorials were moved to [https://develop.kde.org/docs/features/kauth/ KAuth]. Not yet moved pages:
KAuth Basics</translate>]]
 
:<translate><!--T:150-->
An overview of concepts and basic knowledge required to understand and use KAuth effectively</translate>
; [[Special:myLanguage/Development/Tutorials/KAuth/KAuth_Actions|<translate><!--T:151-->
Using KAuth actions in your application</translate>]]
:<translate><!--T:152-->
How to execute KAuth actions in your application, and how to integrate them tightly into your UI</translate>
; [[Special:myLanguage/Development/Tutorials/KAuth/Helper_HowTo|<translate><!--T:153-->
; [[Special:myLanguage/Development/Tutorials/KAuth/Helper_HowTo|<translate><!--T:153-->
Creating a KAuth helper to perform a privileged action</translate>]]
Creating a KAuth helper to perform a privileged action</translate>]]
Line 290: Line 249:
;Resources</translate>
;Resources</translate>
<translate><!--T:163-->
<translate><!--T:163-->
:Please have a look at the [http://api.kde.org/kdesupport-api/phonon-apidocs/phonon/html/ online documentation] for information on the Phonon API. If you prefer using Qt Assistant or Qt Creator you can also use our [http://api.kde.org/qch/phonon-kdesupport.qch offline documentation].
:Please have a look at the [https://api.kde.org/phonon/html/index.html online documentation] for information on the Phonon API. If you prefer using Qt Assistant or Qt Creator you can also use our [https://api.kde.org/qch/phonon.qch offline documentation].
</translate>
</translate>


Line 316: Line 275:
:<translate><!--T:172-->
:<translate><!--T:172-->
Akonadi can handle arbitrary data as item payloads through the use of a plugin based serialization framework</translate>
Akonadi can handle arbitrary data as item payloads through the use of a plugin based serialization framework</translate>
;[[Special:myLanguage/Development/AkonadiPorting|<translate><!--T:173-->
Porting Applications which use KResource API</translate>]]
:<translate><!--T:174-->
Applications using KDE's now deprecated KResource APIs, e.g. KABC or KCal, need to be ported to use their Akonadi equivalents


<translate>
== Kate / KWrite == <!--T:175-->
== Kate / KWrite == <!--T:175-->
</translate>
</translate>
Line 406: Line 362:
How to add an upload dialog to your application.
How to add an upload dialog to your application.


<!--T:203-->
== Other programming languages == <!--T:216-->
Old links for KNS2 and KNS1 content:<br />
</translate>
;[[Special:myLanguage/Development/Tutorials/K Hot New Stuff2|<translate><!--T:204-->
Introduction to Get Hot New Stuff 2</translate>]]
:<translate><!--T:205-->
A short tutorial about how to use KHotNewStuff2 in your application. Deprecated, use version 3 </translate>
;[[Special:myLanguage/Development/Tutorials/Introduction to Get Hot New Stuff|<translate><!--T:206-->
Introduction to Get Hot New Stuff</translate>]]
:<translate><!--T:207-->
An introduction to the developer-friendly network update system that allows KDE applications to fetch new application data at runtime in a user friendly manner.</translate>
;[[Special:myLanguage/Development/Tutorials/KNewStuffSecure|<translate><!--T:208-->
KNewStuff Secure</translate>]] ([http://developer.kde.org/documentation/tutorials/knewstuffsecure/index.html <translate><!--T:209-->
Original Link</translate>])
:<translate><!--T:210-->
Tutorial showing how to share resources in a secured way (KDE 3.4 and later). By András Mantia &lt;[email protected]&gt;.


== Goya == <!--T:211-->
=== Python (PyQt4) === <!--T:217-->
</translate>
; [[Special:myLanguage/Development/Tutorials/Introduction to Goya usage|<translate><!--T:212-->
Introduction to Goya usage</translate>]]
:<translate><!--T:213-->
An introduction for the Goya subsystem usage, which allows you to easily add widgets to your itemviews and connect their signals to your code, as they were real widgets.</translate>
; [[Special:myLanguage/Development/Tutorials/Introduction to Goya usage 2|<translate><!--T:214-->
Introduction to Goya usage (part 2)</translate>]]
:<translate><!--T:215-->
The second part of the tutorial, with a slightly more complex example than the first part.


== Other programming languages == <!--T:216-->
<!--T:325-->
 
{{Note|The tutorials below apply to an older version of Qt only. While there are stable Python bindings available for Qt 5, bindings for KDE Frameworks 5 are still under development.}}
=== Python === <!--T:217-->
</translate>
</translate>
;[http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/ <translate><!--T:218-->
;[http://www.learningpython.com/2008/09/20/an-introduction-to-pyqt/ <translate><!--T:218-->
An Introduction to PyQt</translate>]
An Introduction to PyQt</translate>]
:<translate><!--T:219-->
:<translate><!--T:219-->
Starting off</translate>
Starting off with an introduction to PyQt4</translate>
;[http://lateral.netmanagers.com.ar/stories/BBS47.html<translate> <!--T:220-->
;[[Special:myLanguage/Development/Languages/Python/Using_PyKDE_4|Using PyKDE4]]
PyQt by Example</translate>]
:Introduction to PyKDE4
:<translate><!--T:221-->
Another introduction to PyQt</translate>
;[[Special:myLanguage/Development/Languages/Python/PyKDE_WebKit_Tutorial|<translate><!--T:222-->
;[[Special:myLanguage/Development/Languages/Python/PyKDE_WebKit_Tutorial|<translate><!--T:222-->
PyKDE WebKit Tutorial</translate>]]
PyKDE WebKit Tutorial</translate>]]
Line 465: Line 394:


=== Ruby === <!--T:229-->
=== Ruby === <!--T:229-->
<!--T:326-->
{{Note|The tutorials below apply to an older version of Qt only. There are currently no Ruby bindings for Qt 5 and KDE Frameworks 5 available.}}
</translate>
</translate>
;[http://developer.kde.org/language-bindings/ruby/kde3tutorial/index.html <translate><!--T:230-->
;[http://developer.kde.org/language-bindings/ruby/kde3tutorial/index.html <translate><!--T:230-->
KDE Ruby Korundum tutorial</translate>]
KDE Ruby Korundum tutorial</translate>]
Line 491: Line 422:
=== Shell === <!--T:239-->
=== Shell === <!--T:239-->
</translate>
</translate>
 
This tutorial was moved to [https://develop.kde.org/docs/administration/kdialog/ Shell Scripting with KDE Dialogs].
;[[Special:myLanguage/Development/Tutorials/Shell_Scripting_with_KDE_Dialogs|<translate><!--T:240-->
<translate>
Shell Scripting with KDE dialogs</translate>]] ([http://developer.kde.org/documentation/tutorials/kdialog/t1.html <translate><!--T:241-->
Original Link</translate>])
:<translate><!--T:242-->
Tutorial by [mailto:[email protected] Brad Hards] that describes how to use KDE dialogs in shell scripts with kdialog. It is presented as an example based tutorial.


== Graphics Programming == <!--T:243-->
== Graphics Programming == <!--T:243-->
Line 505: Line 432:
:<translate><!--T:245-->
:<translate><!--T:245-->
Hints on avoiding common mistakes leading to poor performance when using QPainter
Hints on avoiding common mistakes leading to poor performance when using QPainter
</translate>
;[[Special:myLanguage/Development/Tutorials/Graphics/HiDPI|<translate><!--T:318-->
HiDPI Support</translate>]]
:<translate><!--T:319-->
How to render sharp GUI for HiDPI display</translate>
;[[Special:myLanguage/Development/Tutorials/Graphics/Migrate Qt Quick Controls 1|<translate><!--T:320--> Migrate Qt Quick Controls 1</translate>]]
:<translate><!--T:321--> Qt Quick Controls 1 is not supported so please follow the guide to upgrade to Qt Quick Controls 2</translate>
<translate>


== Using the KDE Games Libraries == <!--T:246-->
== Using the KDE Games Libraries == <!--T:246-->
Line 526: Line 465:
Creating a slicer plugin for Palapeli
Creating a slicer plugin for Palapeli
</translate>
</translate>
== Using the KDE PIM Libraries ==
;[[Special:myLanguage/Development/Tutorials/PIM/ical|<translate> <!--T:259-->
iCalendar functionality</translate>]]
:<translate><!--T:260-->
Using kcal to manage iCalendar files</translate>


<translate>== Other tutorials == <!--T:261-->
<translate>== Other tutorials == <!--T:261-->
Line 556: Line 488:
:<translate><!--T:267-->
:<translate><!--T:267-->
This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.
This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.
=== Pixmap cache (KPixmapCache) === <!--T:309-->
</translate>
;[[Special:myLanguage/Development/Tutorials/KPixmapCache|<translate><!--T:269-->
Using the KDE pixmap cache</translate>]]
:<translate>
<!--T:316-->
This tutorial shows how to use KPixmapCache to cache e.g. pixmaps generated from SVGs or some data.
=== Porting an application from KSystemTrayIcon to KStatusNotifierItem === <!--T:282-->
</translate>
;[[Special:myLanguage/Development/Tutorials/PortToKStatusNotifierItem|<translate><!--T:283-->
Porting from KSystemTrayIcon to KStatusNotifierItem</translate>]]
:<translate><!--T:284-->
This tutorials shows how to port an application using KSystemTrayIcon to KStatusNotifierItem


=== Using the KDE Wallet API for safe storage === <!--T:285-->
=== Using the KDE Wallet API for safe storage === <!--T:285-->
Line 582: Line 497:
"Brief introduction to the KWallet API which can be used for storing all kinds of sensitive information."
"Brief introduction to the KWallet API which can be used for storing all kinds of sensitive information."


===How to edit a wiki with Libmediawiki === <!--T:288-->
== Deprecated Material == <!--T:317-->
</translate>
{{Warning|Tutorials in this section are outdated and are no longer relevant to the current state of KDE software. They are being retained here for historical purposes only. Please do not use them.}}
;[[Special:myLanguage/Development/Tutorials/Libmediawiki|<translate><!--T:289-->
 
Libmediawiki</translate>]]
;[[Development/Tutorials/KDE4 Porting Guide|Porting Your Application to KDE4]]
:<translate><!--T:290-->
:''Help Porting Applications from Qt3/KDE3 to Qt4/KDE4''
This tutorial present how to edit a wiki with Libmediawiki.


== Deprecated Material ==
{{Warning|Tutorials in this section are outdated and are no longer relevant to the current state of KDE software. They are being retained here for historical purposes only. Please do not use them.}}


=== Accessibility === <!--T:313-->
=== Accessibility === <!--T:313-->
Line 617: Line 529:
:<translate> <!--T:100-->
:<translate> <!--T:100-->
Port your applications from DCOP to D-Bus with this handy guide.
Port your applications from DCOP to D-Bus with this handy guide.
</translate>
=== Personal Information Management (Akonadi) ===
;[[Special:myLanguage/Development/AkonadiPorting|<translate><!--T:173-->
Porting Applications which use KResource API</translate>]]
:<translate><!--T:174-->
Applications using KDE's now deprecated KResource APIs, e.g. KABC or KCal, need to be ported to use their Akonadi equivalents
=== Get Hot New Stuff  === <!--T:203-->
Old links for KNS2 and KNS1 content:<br />
</translate>
;[[Special:myLanguage/Development/Tutorials/K Hot New Stuff2|<translate><!--T:204-->
Introduction to Get Hot New Stuff 2</translate>]]
:<translate><!--T:205-->
A short tutorial about how to use KHotNewStuff2 in your application. Deprecated, use version 3 </translate>
;[[Special:myLanguage/Development/Tutorials/Introduction to Get Hot New Stuff|<translate><!--T:206-->
Introduction to Get Hot New Stuff</translate>]]
:<translate><!--T:207-->
An introduction to the developer-friendly network update system that allows KDE applications to fetch new application data at runtime in a user friendly manner.</translate>
;[[Special:myLanguage/Development/Tutorials/KNewStuffSecure|<translate><!--T:208-->
KNewStuff Secure</translate>]] ([http://developer.kde.org/documentation/tutorials/knewstuffsecure/index.html <translate><!--T:209-->
Original Link</translate>])
:<translate><!--T:210-->
Tutorial showing how to share resources in a secured way (KDE 3.4 and later). By András Mantia &lt;[email protected]&gt;.
=== Goya === <!--T:211-->
</translate>
; [[Special:myLanguage/Development/Tutorials/Introduction to Goya usage|<translate><!--T:212-->
Introduction to Goya usage</translate>]]
:<translate><!--T:213-->
An introduction for the Goya subsystem usage, which allows you to easily add widgets to your itemviews and connect their signals to your code, as they were real widgets.</translate>
; [[Special:myLanguage/Development/Tutorials/Introduction to Goya usage 2|<translate><!--T:214-->
Introduction to Goya usage (part 2)</translate>]]
:<translate><!--T:215-->
The second part of the tutorial, with a slightly more complex example than the first part.
</translate>
<translate>
=== Using the KDE PIM Libraries === <!--T:322-->
</translate>
;[[Special:myLanguage/Development/Tutorials/PIM/ical|<translate> <!--T:259-->
iCalendar functionality</translate>]]
:<translate><!--T:260-->
Using kcal to manage iCalendar files</translate>
<translate>
=== Pixmap cache (KPixmapCache) === <!--T:309-->
</translate>
;[[Special:myLanguage/Development/Tutorials/KPixmapCache|<translate><!--T:269-->
Using the KDE pixmap cache</translate>]]
:<translate>
<!--T:316-->
This tutorial shows how to use KPixmapCache to cache e.g. pixmaps generated from SVGs or some data.
=== Porting an application from KSystemTrayIcon to KStatusNotifierItem === <!--T:282-->
</translate>
;[[Special:myLanguage/Development/Tutorials/PortToKStatusNotifierItem|<translate><!--T:283-->
Porting from KSystemTrayIcon to KStatusNotifierItem</translate>]]
:<translate><!--T:284-->
This tutorials shows how to port an application using KSystemTrayIcon to KStatusNotifierItem
===How to edit a wiki with Libmediawiki === <!--T:288-->
</translate>
;[[Special:myLanguage/Development/Tutorials/Libmediawiki|<translate><!--T:289-->
Libmediawiki</translate>]]
:<translate><!--T:290-->
This tutorial present how to edit a wiki with Libmediawiki.


=== KDE2 and KDE3 Materials === <!--T:291-->
=== KDE2 and KDE3 Materials === <!--T:291-->

Latest revision as of 21:50, 18 July 2023

These tutorials were updated and moved to https://develop.kde.org/docs/


Below is the old version of this wiki page.



Here is a list of currently available tutorials for developing KDE Applications or KDE Plasma, or using KDE Frameworks to develop a 3rd-party application.

Basics of how to develop with KDE Frameworks

These tutorials were moved to Getting Started with KXmlGui. Not yet moved pages:

Common Programming Mistakes
Various common mistakes made while developing Qt and KDE applications and how to avoid them.

Integrating with Workspaces

These tutorials were moved to Features. Not yet moved pages:

Icons
Deliver your application with icons that are automatically installed to the right places. Based on the Kaction Tutorial.

Managing Configuration Data With KConfig

These tutorials were moved to Configuration. Not yet moved pages:

Updating KConfig Files
Tutorial on how to write an update script to keep changes in your application's config file format in sync with the user's already existing config file

Services : Applications and Plugins

Introduction to the Services Framework
An overview of the services framework in KDE and what it provides the application developer. Covers the system configuration cache (SyCoCa), the source data files and what the indexed information can be used for.
Finding Services Using Trader Queries
How to find services, such as plugins or mimetypes, that are indexed in the SyCoCa using Trader Query Syntax
Creating and Loading Plugins Using KService
Learn how to define custom plugin types, find installed plugins (including 3rd party plugins) and load them in an easy and portable fashion using KService.

Localization

See also Localization portal.

Introduction To Unicode
An introduction to what Unicode is as well as how to handle Unicode data in KDE applications.
Writing Applications With Localization In Mind
This tutorial covers what localization is, why it's important and how to ensure your application is ready to be localized. A must read for all application developers.
Avoiding Common Localization Pitfalls
There are several common mistakes that prevent applications from being properly localized. Find out what they are and how to easily avoid them in this tutorial.
Building KDE's Localization Module
Building and installing language support from KDE's localization (l10n) module is a good idea for those working on applications in the main KDE repository. Doing so will allow you to test your application in another language and spot problem areas. Learn how to do just that in this tutorial.
Incorporating i18n Into the Build System
Once your application is ready to be localized, the next step is to ensure that translation files are built automatically and kept up to date. This tutorial covers the necessary CMakeFiles.txt additions as well the process of distributing the resulting message catalogs with your application.
Common i18n Challenges and Solutions
This tutorial covers challenges that you may eventually run into such as translating handbooks and other data that exists outside of the source code, merging and handling obsolete .po files, dealing with freezes, coding in languages other than English and creating independent releases of or moving applications between KDE modules.
Semantic Markup of Messages
To ensure consistent presentation and more meaningful representations of messages in applications, semantic markup can be applied to messages marked for translation using the KUIT system. This tutorial describes how this system works.
Automated i18n Code Checking
The Krazy code checker scans KDE's code and reports common i18n mistakes.
Dealing with Language Changes
This tutorial covers dealing with changing languages: How to add the function to change the language and then dynamically update the user interface when language has been changed.
Understanding How Messages Appear to Translators
An introduction to what context information is extracted (and what isn't) from source code for translators to see.

Application Automation and Scripting

D-Bus

These tutorials were moved to D-Bus. Not yet moved pages:

Intermediate D-Bus
Tips to make use of QtDBus when faced with problematic real-world interfaces.
Creating D-Bus Interfaces
Learn how to expose functionality in your application by creating and using custom D-Bus interfaces. Covers generating the XML descriptions, instantiating interfaces at run time and setting up the build system with CMake.
Using Custom Types with D-Bus
Learn how to use your own types in classes exported on D-Bus. Covers marshaling and unmarshaling of objects, the integration of custom types into XML descriptions and registering the custom types with the Qt Meta Object system.
D-Bus Autostart Services
Turn your application into a D-Bus autostart service with this tutorial. This D-Bus feature, also known as "D-Bus service activation", will ensure that even when your application isn't running that D-Bus calls made to it will work by relying on the D-Bus daemon itself to start your app if and when needed.


Dolphin

These tutorials were moved to Dolphin.

Kross

Introduction to Kross
An introduction to the Kross Scripting Framework.
Hello World
A first application with working kross code.
Calling Functions in Kross
Simple demonstration of calling scripting functions
Connecting Signals and Slots in Kross
Simple demonstration of connecting object signals with script slots
Scripts as Plugins with Kross
This tutorial provides a step-by-step introduction how to integrate scripts as plugins into a KDE application.
Placing script actions in your application menus
Simple demonstration on how to extend you application menus to execute script files.
How to use an ActionCollection
A small Tutorial on How to use Kross::ActionCollections.

Calligra Plugin Tutorials

Calligra Overview
This document shows an overview of the different Calligra plugin types and tells you what each of their purpose and strengths are. If you are new with Calligra plugins, this is the place to start.
Calligra Plugin Creation
This gives a technical overview of what it means to write a Calligra plugin.
Creating Calligra Flake Plugins
This tutorial shows you how you can build a plugin for Calligra applications to allow you embed content in ODF documents using Flake.
Calligra Words Scripting
This tutorial shows how to script Calligra Words with Python, or JavaScript using Kross.
Calligra Sheets Scripting
This tutorial shows how to script Calligra Sheets with Python, or JavaScript using Kross.

System Activity

Writing script actions for the process's context menu
This tutorial shows how to add a context menu action to show custom information about a process.

KWin

These tutorials were moved to KWin Scripting Tutorial. Not yet moved pages:

QML Window Switcher Layouts
This tutorial documents the new QML layouts for the KWin Window Switcher

Plugins and KParts

Using KParts
A kPart is a plugin that you can just load into your application. For example, it is easy to integrate an editor (the katePart) or a console (the konsolePart) into your application's window.
Writing kontact plugins
Kontact plugins are KParts. This tutorial describes how you can write one.
Writing Qt Designer Plugins
Add your widgets to Qt Designer and thus make them usable in UI files.
KCM HowTo
KCM are plugins which are loaded by System Settings to display configuration elements. They can also be used within an application.

Hardware Awareness (Solid)

Introduction to Solid
An introduction to the Solid effort in general and it library in particular.
Listing Devices
How to use the Solid core library to discover the hardware and interact with the system.
Accessing Network Information
How to use the Solid system to get information about the network
Creating a Device Action
When your application is interested in registering actions with the system for removable hardware

Authorization and Privilege escalation (KAuth)

These tutorials were moved to KAuth. Not yet moved pages:

Creating a KAuth helper to perform a privileged action
You will learn how to use KAuth's helpers and escalation facilities, and how to seamlessly make a privileged and non privileged portion of your application interact
Creating a KCM requiring authorization upon saving
Learn how to use the high level KCModule API to create KCModules handling authorization, and its UI integration, on their own

Multimedia (Phonon)

Phonon
Introduction to Phonon tells how to compile and run the code. If you like to work in Python, try this version of the same tutorial
Writing Backends
How to start creating a new backend for the multimedia API
Resources
Please have a look at the online documentation for information on the Phonon API. If you prefer using Qt Assistant or Qt Creator you can also use our offline documentation.

Plasma 5

See Plasma tutorials.

Personal Information Management (Akonadi)

Using Akonadi in Applications
Displaying and modifying data provided by Akonadi
Developing Akonadi Resources
Akonadi Resources are agent programs which transport PIM data between Akonadi and a backend (files, servers, etc)
Using custom data types with Akonadi
Akonadi can handle arbitrary data as item payloads through the use of a plugin based serialization framework

Kate / KWrite

Getting started with KTextEditor plugins
Creating your first KTextEditor plugin
Developing a plugin with configuration dialog
Adding a configuration dialog to the Time & Date example
A small Editor
Create a small application using KTextEditor

KDevelop

Creating a class template
Instructions for creating a class template, which can be used to quickly generate classes from KDevelop.
Creating a project template
Instructions for creating a project template, which can be used for starting new project with KDevelop.
KDevelop-PG-Qt Introduction
Information on the KDevelop parser generator, useful for language plugins.

Printing

KDE mostly uses the Qt Printing infrastructure.

Hello World
Introduction to the KDE printing system

kioslaves

Collaboration

Open Collaboration Services (libattica)

Introduction to Attica
In this tutorial a simple widget showing information about a Person on the server is created.

Get Hot New Stuff

Get Hot New Stuff 3 - Download
How to use KHotNewStuff3 in your application.
Get Hot New Stuff 3 - Checking for Updates
How to check whether updates for installed stuff are available without showing the dialog/widget.
Get Hot New Stuff 3 - Upload
How to add an upload dialog to your application.

Other programming languages

Python (PyQt4)

Note
The tutorials below apply to an older version of Qt only. While there are stable Python bindings available for Qt 5, bindings for KDE Frameworks 5 are still under development.
An Introduction to PyQt
Starting off with an introduction to PyQt4
Using PyKDE4
Introduction to PyKDE4
PyKDE WebKit Tutorial
A simple web browser application in PyKDE
101 Introduction to signals and slots
A simple introduction to Qt's signal and slot architecture.
PyKDE DBus Tutorial
An introduction to DBus communication using PyKDE
PyKDE KNotify Tutorial
An introduction to Knotify (Notifications and KJobs) using PyKDE

Ruby

Note
The tutorials below apply to an older version of Qt only. There are currently no Ruby bindings for Qt 5 and KDE Frameworks 5 available.
KDE Ruby Korundum tutorial
A ruby version of Antonio Larrosa Jiménez's KDE tutorial by Richard Dale. See the Ruby Developers Corner for Qt tutorials and other info.
Qt4 Ruby Tutorial
Nokia's fabulous introductory tutorial to Qt, translated to Ruby.
Creating a Plasma Widget in Ruby
Tutorial that shows how to create your first Plasma Applet using the Ruby language.
Developing Qt4 Applications using Qt Designer and Ruby on Kubuntu
Tutorial that shows how to design a simple User Interface in Qt Designer and then use the resulting widget in a Qt Ruby application we build from scratch.
Ruby-Qt/KDE Book
There is also an approach to create an Ruby-Qt/KDE Book under a free license. The content will be created in this wiki.

Shell

This tutorial was moved to Shell Scripting with KDE Dialogs.

Graphics Programming

QPainter Perfomance
Hints on avoiding common mistakes leading to poor performance when using QPainter
HiDPI Support
How to render sharp GUI for HiDPI display
Migrate Qt Quick Controls 1
Qt Quick Controls 1 is not supported so please follow the guide to upgrade to Qt Quick Controls 2

Using the KDE Games Libraries

KStandardGameAction
Using libkdegames to make your game fit the kdegames standard
Highscores
Implementing a simple highscore table into your game
Theme Selector
Using the libkdegames theme selection dialog
Palapeli Slicers
Creating a slicer plugin for Palapeli

Other tutorials

2D Plotting (KPlotWidget)

Using the KDE data-plotting widget
This tutorial introduces KPlotWidget, which is used for 2-D data plotting. It includes information on simple usage of the widget (including adding and modifying data sets, and customizing the plot axes and labels), and advanced customization (including extending the widget through sub-classing).
Physical Simulation
How to perform a physical simulation: animation and diagram

Spelling and Grammar Checking (Sonnet)

Adding spell-checking or grammar-checking to KDE applications
This tutorial introduces Sonnet and how one may use it to add language correction to your KDE application. Sonnet's auxiliary features shall be described in a separate tutorial.

Using the KDE Wallet API for safe storage

KWallet
"Brief introduction to the KWallet API which can be used for storing all kinds of sensitive information."

Deprecated Material

Warning
Tutorials in this section are outdated and are no longer relevant to the current state of KDE software. They are being retained here for historical purposes only. Please do not use them.


Porting Your Application to KDE4
Help Porting Applications from Qt3/KDE3 to Qt4/KDE4


Accessibility

Accessibility Overview
A list of accessibility tutorials and general information.
Accessibility Checklist
What to look for in your application to make it accessible for as many people as possible.
Screen Reader
This tutorial will explain some details about using screen readers with KDE applications.
Text-To-Speech
How to utilize Jovie text-to-speech service in your application.

D-Bus

Porting from DCOP to D-Bus
Port your applications from DCOP to D-Bus with this handy guide.

Personal Information Management (Akonadi)

Porting Applications which use KResource API
Applications using KDE's now deprecated KResource APIs, e.g. KABC or KCal, need to be ported to use their Akonadi equivalents

Get Hot New Stuff

Old links for KNS2 and KNS1 content:

Introduction to Get Hot New Stuff 2
A short tutorial about how to use KHotNewStuff2 in your application. Deprecated, use version 3
Introduction to Get Hot New Stuff
An introduction to the developer-friendly network update system that allows KDE applications to fetch new application data at runtime in a user friendly manner.
KNewStuff Secure (Original Link)
Tutorial showing how to share resources in a secured way (KDE 3.4 and later). By András Mantia <[email protected]>.

Goya

Introduction to Goya usage
An introduction for the Goya subsystem usage, which allows you to easily add widgets to your itemviews and connect their signals to your code, as they were real widgets.
Introduction to Goya usage (part 2)
The second part of the tutorial, with a slightly more complex example than the first part.

Using the KDE PIM Libraries

iCalendar functionality
Using kcal to manage iCalendar files

Pixmap cache (KPixmapCache)

Using the KDE pixmap cache
This tutorial shows how to use KPixmapCache to cache e.g. pixmaps generated from SVGs or some data.

Porting an application from KSystemTrayIcon to KStatusNotifierItem

Porting from KSystemTrayIcon to KStatusNotifierItem
This tutorials shows how to port an application using KSystemTrayIcon to KStatusNotifierItem

How to edit a wiki with Libmediawiki

Libmediawiki
This tutorial present how to edit a wiki with Libmediawiki.

KDE2 and KDE3 Materials

KDE3 Tutorials
These tutorials cover topics related to KDE3.
KDE2 Tutorials
These tutorials cover topics related to KDE2.