Instance Property


A Boolean value that determines whether the preview should close when its window closes.


var shouldCloseWithWindow: Bool { get set }


The default value of this property is true, which means that the preview will automatically close when its window closes. If you set this property to false, you must close the preview when you are finished with it by calling the close() method. Once a QLPreviewView is closed, it won’t accept any more preview items.

See Also

Closing a Preview

func close()

Closes the receiver, releasing the current previewItem.