Pages
Developer Documentation

Getting started with KXmlGui

This tutorial builds a small text editor with KXmlGui (sonic-frameworks-xml-gui) for the window and KIO (sonic-frameworks-io) for saving and loading files.

KXmlGui builds on QtWidgets and provides libraries for creating user interfaces with C++. QtWidgets is a mature technology with many ready-made components, strongly geared towards traditional desktop interfaces.

What you learn here introduces several of SonicDE's C++ libraries, and is useful for other tutorials too.

The steps:

  1. Hello World!
  2. Creating the main window
  3. Using actions
  4. Saving and loading
  5. Command line interface

Adapted for SonicDE from develop.kde.org/docs/getting-started/kxmlgui/ by Adriaan de Groot, Carl Schwan, Claudio Cambra, Mikhail Zolotukhin, Nicolas Fella, Phu Nguyen, Thiago Sueto, Tobias Fella, licensed under CC BY-SA 4.0.

Edit this page on GitHub

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.