Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtGui.IQMimeSource Interface Reference

The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. More...

Inheritance diagram for QtGui.IQMimeSource:

Public Member Functions

QByteArray EncodedData (string format)
  More...
 
string Format (int n=0)
  More...
 
bool Provides (string mimeType)
  More...
 

Detailed Description

The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type.

The preferred approach to drag and drop is to use QDrag in conjunction with QMimeData. See Drag and Drop for details.

See also QMimeData and QDrag.

Member Function Documentation

QByteArray QtGui.IQMimeSource.EncodedData ( string  format)

Returns the encoded data of this object in the specified MIME format.

Implemented in QtGui.QMimeSource, and QtGui.QDropEvent.

string QtGui.IQMimeSource.Format ( int  n = 0)

Returns the (i - 1)-th supported MIME format, or 0.

Implemented in QtGui.QMimeSource, and QtGui.QDropEvent.

bool QtGui.IQMimeSource.Provides ( string  mimeType)

Returns true if the object can provide the data in format mimeType; otherwise returns false.

If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as QTextDrag::canDecode() and QImageDrag::canDecode().

Implemented in QtGui.QMimeSource, and QtGui.QDropEvent.