Pages
API Documentation
On this page

KRuntimePlatform Namespace

Utility functions around the runtime platform. More...

  • Header: #include <KRuntimePlatform>
  • CMake: find_package(KF6 REQUIRED COMPONENTS CoreAddons)
    target_link_libraries(mytarget PRIVATE KF6::CoreAddons)

Detailed Description

Function Documentation

QStringList KRuntimePlatform::runtimePlatform()

Returns the runtime platform, e.g. "desktop" or "tablet, touch". The first entry/ies in the list relate to the platform formfactor and the last is the input method specialization.

If the string is empty, there is no specified runtime platform and a traditional desktop environment may be assumed.

The value is read using the PLASMA_PLATFORM env variable

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