Classes - Annotated - Tree - Functions - Home - Structure

QFilePreview Class Reference

The QFilePreview class provides file previewing in QFileDialog. More...

#include <qfiledialog.h>

List of all member functions.

Public Members


Detailed Description

The QFilePreview class provides file previewing in QFileDialog.

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

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

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

For an example of a preview widget see qt/examples/qdir/qdir.cpp.


Member Function Documentation

QFilePreview::QFilePreview ()

Constructs the QFilePreview.

void QFilePreview::previewUrl ( const QUrl & url ) [virtual]

This function is called by QFileDialog if a preview for the url should be shown. Reimplement this function to perform file/URL previews.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.


Copyright © 2001 TrolltechTrademarks
Qt version 3.0.0-beta2