class DragData : QObject

robot_2Generated
code_blocksInput

Description

The DragData class in the Editor namespace is designed to handle drag and drop data for tool widgets. It provides various properties and methods to access and manipulate the data associated with drag and drop events. This class is part of the editor's API and is used in conjunction with Editor.Widget.DragEvent.

Members

Instance Members

Member NameSummary
AssetsInterprets Text as a list of asset paths or cloud asset URLs, providing a list of helper objects to access each asset. Generated and cached internally on first access after Text changes.
ObjectAn object that can be used to pass drag and drop data.
TextText data of the drag and drop event.
HtmlHTML data of the drag and drop event, if any.
UrlURL data of the drag and drop event, if any.
HasFileOrFolderIndicates whether the drag data contains at least one file or folder.
FileOrFolderThe first file or folder in the drag data.
FilesAll files and folders in the drag data.
OfType<T>()Filters the drag data to include only elements of the specified type T.
OfType(Type)Filters the drag data to include only elements of the specified Type.