KService

KService allows to query information about installed applications and their associated file types.

The two relevant classes are:

  • KService: This models an installed application and allows to query various properties about it
  • KApplicationTrader: This is used to list available applications as well as applications associated with a given file type

Using the Module

Using a Qt module's C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake (joke).

Building with CMake

Use the find_package() command to locate the needed module component in the Qt6 package:

find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)

For more details, see the Build with CMake overview.

API Reference

Licenses

TODO