Eneboo - Documentación para desarrolladores
Referencia de la Clase QMacMime

The QMacMime class maps open-standard MIME to Mac flavors.Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Mac although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in Mac formats. Más...

Diagrama de herencias de QMacMime
QMacMimeAnyMime QMacMimeFileUri QMacMimeHFSUri QMacMimeImage QMacMimeText

Descripción detallada

The QMacMime class maps open-standard MIME to Mac flavors.

Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Mac although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in Mac formats.

By instantiating subclasses of QMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats.

Qt has predefined support for the following Mac flavors: kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag. kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag. kScrapFlavorTypePicture - converted to "image/format", where format is a Qt image format, and supported by QImageDrag. kDragFlavorTypeHFS - converted to "text/uri-list", and supported by QUriDrag.

You can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime().


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'