Q3FilePreview Class

The Q3FilePreview class provides file previewing in Q3FileDialog. More...

Header: #include <Q3FilePreview>

Public Functions

virtual ~Q3FilePreview()
virtual void previewUrl(const Q3Url & url) = 0

Detailed Description

The Q3FilePreview class provides file previewing in Q3FileDialog.

This class is an abstract base class which is used to implement widgets that can display a preview of a file in a Q3FileDialog.

You must derive the preview widget from both QWidget and from this class. Then you must reimplement this class's previewUrl() function, which is called by the file dialog if the preview of a file (specified as a URL) should be shown.

See also Q3FileDialog::setPreviewMode(), Q3FileDialog::setContentsPreview(), Q3FileDialog::setInfoPreview(), Q3FileDialog::setInfoPreviewEnabled(), Q3FileDialog::setContentsPreviewEnabled().

Member Function Documentation


Constructs the Q3FilePreview.

[virtual] Q3FilePreview::~Q3FilePreview()

Destroys the file preview object.

[pure virtual] void Q3FilePreview::previewUrl(const Q3Url & url)

This function is called by Q3FileDialog if a preview for the url should be shown. Reimplement this function to provide file previewing.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.