Pages
API Documentation
On this page

KDragWidgetDecorator Class

A decorator which adds drag-support to widgets. More...

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

List of all members, including inherited members

Public Types

Public Functions

Detailed Description

This is a decorator using an event filter to implement drag-support in widgets.

You must set the dragObjectFactory to specify the QDrag to be used.

Member Type Documentation

KDragWidgetDecorator::DragObjectFactory

Member Function Documentation

KDragWidgetDecorator<Widget>::DragObjectFactory KDragWidgetDecorator::dragObjectFactory() const

Returns the QDrag factory used by this decorator

See also setDragObjectFactory()

void KDragWidgetDecorator::setDragObjectFactory(KDragWidgetDecorator<Widget>::DragObjectFactory factory)

Set a factory to be used by this decorator

factory the new QDrag factory to use

See also dragObjectFactory()

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