The QFilePreview class provides file previewing in QFileDialog.
.PP
This class is an abstract base class which is used to implement widgets that can display a preview of a file in a QFileDialog.
.PP
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.
.PP
See also QFileDialog::setPreviewMode(), QFileDialog::setContentsPreview(), QFileDialog::setInfoPreview(), QFileDialog::setInfoPreviewEnabled(), QFileDialog::setContentsPreviewEnabled().
.PP
For an example of a preview widget see qt/examples/qdir/qdir.cpp.