Home

QtCopyDialog Class Reference

The QtCopyDialog class provides visual feedback for large copy and move operations, and it provides the option of aborting an operation. More...

 #include <QtCopyDialog>

Inherits QDialog.

Properties

Public Functions

Additional Inherited Members


Detailed Description

The QtCopyDialog class provides visual feedback for large copy and move operations, and it provides the option of aborting an operation.

QtCopyDialog is used to give the user an indication of how much time a copy or move operation is going to take. It estimates and displays the time necessary to complete the operation. It also gives the user the option of aborting the operation at any time.

QtCopyDialog is normally used with the QtFileCopier class which perform copy and move operations on files in a background process. To connect the copy dialog to an QtFileCopier instance, you can use the setFileCopier() function.

The behavior of the copy dialog can be controlled using its autoClose and minimumDuration properties: The autoClose property holds whether the dialog should be automatically closed when the operation is completed. The minimumDuration property specifies the time that must pass before the dialog appears.

See also QtFileCopier.


Property Documentation

autoClose : bool

This property holds whether the dialog should be automatically closed when the operation is completed.

The default is true.

Access functions:

minimumDuration : int

This property holds the time that must pass before the dialog appears.

When all pending operations are completed within the specified time frame, the dialog will not appear at all. If the minimum duration is set to 0, the dialog appears as soon as the program execution returns to the event processing loop.

The default duration is 2000 miliseconds.

Access functions:


Member Function Documentation

QtCopyDialog::QtCopyDialog ( QWidget * parent = 0, Qt::WFlags flags = 0 )

Creates a copy dialog with the given parent and the specified window flags.

QtCopyDialog::QtCopyDialog ( QtFileCopier * copier, QWidget * parent = 0, Qt::WFlags flags = 0 )

Creates a copy dialog with the given parent and the specified window flags.

The dialog is connected to the specified file copier. The file copier's current state must be QtFileCopier::Idle, i.e. it cannot be performing any operation and its pending list must be empty.

See also setFileCopier().

QtCopyDialog::~QtCopyDialog ()

Destroys the copy dialog.

QtFileCopier * QtCopyDialog::fileCopier () const

Returns the file copier currently connected to the copy dialog.

See also setFileCopier().

void QtCopyDialog::setFileCopier ( QtFileCopier * copier )

Connects the copy dialog to the given file copier. The file copier's current state must be QtFileCopier::Idle, i.e. it cannot be performing any operation and its pending list must be empty.

See also fileCopier().


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Solutions