Pages
API Documentation
On this page

KJobWidgets Namespace

Large set of desktop widgets. More...

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

Detailed Description

KJobWidgets namespace

Function Documentation

[since 6.0] void KJobWidgets::setWindow(QObject *job, QWidget *widget)

Associate this job with a window given by window.

job should be a KJob subclass

This is used:

  • by KDialogJobUiDelegate as parent widget for error messages
  • by KWidgetJobTracker as parent widget for progress dialogs
  • by KIO::AbstractJobInteractionInterface as parent widget for rename/skip dialogs and possibly more.
  • by KIO::DropJob as parent widget of popup menus. This is required on Wayland to properly position the menu.

This function was introduced in Qt 6.0.

See also window()

[since 6.0] void KJobWidgets::updateUserTimestamp(QObject *job, unsigned long time)

Updates the last user action timestamp to the given time.

job should be a KJob subclass

This function was introduced in Qt 6.0.

[since 6.0] unsigned long KJobWidgets::userTimestamp(QObject *job)

Returns the last user action timestamp

job should be a KJob subclass

This function was introduced in Qt 6.0.

[since 6.0] QWidget *KJobWidgets::window(QObject *job)

Return the window associated with this job.

job should be a KJob subclass

This function was introduced in Qt 6.0.

See also setWindow()

[since 6.4] QWindow *KJobWidgets::windowHandle(QObject *job)

Returns the window handle associated with this job.

job should be a KJob subclass

@deprecated[6.5] use KJobWindows::window() instead.

This function was introduced in Qt 6.4.

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