Qtopia Home - Classes - Annotated - Functions - Qt Embedded

ImageSelectorDialog Class Reference

The ImageSelectorDialog provides a means of selecting an image from a list of thumbnails. More...

#include <qtopia/imageselector.h>

List of all member functions.

Public Members

Signals


Detailed Description

The ImageSelectorDialog provides a means of selecting an image from a list of thumbnails.

This class presents a dialog of thumbnail view of available images. Thumbnails are stored in the calling applications' pixmap cache. To retrieve the image directly from the cache, append "_tv" to the filename returned via selectedFilename() or the selected() signal.

First availability: Qtopia 2.0

See also Qtopia Classes.


Member Function Documentation

ImageSelectorDialog::ImageSelectorDialog ( QWidget * parent = 0, const char * name = 0, bool modal = TRUE, const QString & srcdir = QString::null, int wflags = 0 )

Constructs an ImageSelectorDialog.

parent, name, modal, and wflags are the standard Qt QDialog flags. srcdir refers to base directory where images may be located. By default, this is QString::null, referring to the Qtopia Documents area. If you require access to a particular directory, specify the path.

Example:

    QString directory = QPEApplication::qpeDir() + "pics/wallpaper";
    ImageSelectorDialog *is = new ImageSelectorDialog(this, "Wallpapers", TRUE, directory);
  

This file is part of the Qtopia platform, copyright © 1995-2004 Trolltech, all rights reserved.


Copyright © 2001-2004 Trolltech Trademarks
Qtopia version 2.0.1