Platforms to show: All Mac Windows Linux Cross-Platform

Back to QLPreviewPanelMBS class.

QLPreviewPanelMBS.didLoadPreviewItem(file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
This event is called after an item has been loaded.

QLPreviewPanelMBS.handleEvent(e as NSEventMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No
Invoked by the preview panel when it receives an event it doesn't handle.

Returns true if you did not handle this event.

Some examples using this event:

QLPreviewPanelMBS.numberOfPreviewItems as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No
The event called to ask you for the number of items that the preview panel should preview.

Some examples using this event:

QLPreviewPanelMBS.previewItemAtIndex(index as Integer) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No
The event is called to ask you for the item with the given index.

Some examples using this event:

QLPreviewPanelMBS.sourceFrameOnScreenForPreviewItem(file as folderitem) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No
Invoked when the preview panel opens or closes to provide a zoom effect.

Return a zero rect if there is no origin point, this will produce a fade of the panel. The coordinates are screen based.

Some examples using this event:

QLPreviewPanelMBS.transitionImageForPreviewItem(file as folderitem, byref contentRect as NSRectMBS) as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No
Called to ask you for the transition image for a given preview item.

Invoked when the preview panel opens or closes to provide a smooth transition when zooming.

contentRect: The rect within the image that actually represents the content of the document. For example, for icons the actual rect is generally smaller than the icon itself.

Return an image the panel will crossfade with when opening or closing. You can specify the actual "document" content rect in the image in contentRect.

QLPreviewPanelMBS.willLoadPreviewItem(file as folderitem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event QuickLook MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
This event is called before an item is loaded.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...