wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions

QwwFileChooser Class Reference

A widget for choosing a file or directory from the file system More...

 #include <QwwFileChooser>

Inherits QwwButtonLineEdit.


Properties


Public Functions

QwwFileChooser ( QWidget * parent = 0 )
QFileDialog::AcceptMode acceptMode () const
QCompleter::CompletionMode completionMode () const
QFileDialog::FileMode fileMode () const
const QString & filter () const
void setAcceptMode ( QFileDialog::AcceptMode m )
void setCompletionMode ( QCompleter::CompletionMode m )
void setFileMode ( QFileDialog::FileMode m )
void setFilter ( const QString & f )
virtual void setModel ( QAbstractItemModel * m )
void setUsesNativeFileDialog ( bool n )
bool usesNativeFileDialog () const

Public Slots

void chooseFile ()

Additional Inherited Members


Detailed Description

A widget for choosing a file or directory from the file system

QwwFileChooser

The widget is able to work in two modes - open (existing files or directories -- for loading files) and save (for saving files).


Property Documentation

acceptMode : QFileDialog::AcceptMode

This property holds this property holds the current accept mode of the widget.

Access functions:

QFileDialog::AcceptMode acceptMode () const
void setAcceptMode ( QFileDialog::AcceptMode m )

completionMode : QCompleter::CompletionMode

This property holds this property holds the current completion mode of the widget.

Access functions:

QCompleter::CompletionMode completionMode () const
void setCompletionMode ( QCompleter::CompletionMode m )

fileMode : QFileDialog::FileMode

This property holds this property holds the current file mode of the widget.

Access functions:

QFileDialog::FileMode fileMode () const
void setFileMode ( QFileDialog::FileMode m )

filter : QString

This property holds this property holds information about the currently chosen filter.

Access functions:

const QString & filter () const
void setFilter ( const QString & f )

usesNativeFileDialog : bool

This property holds this property holds information whether the widget uses a native file dialog for choosing files (or directories).

Access functions:

bool usesNativeFileDialog () const
void setUsesNativeFileDialog ( bool n )

Member Function Documentation

QwwFileChooser::QwwFileChooser ( QWidget * parent = 0 )

Constructs a file chooser with a given parent.

void QwwFileChooser::chooseFile ()   [slot]

This slot opens a file dialog for choosing one or more entries from the file system according to currently active mode.

See also acceptMode.

void QwwFileChooser::setModel ( QAbstractItemModel * m )   [virtual]

Sets the model used by the widget to m.


Copyright © 2007-2010 Witold Wysota Trademarks
wwWidgets 1.0.0