plugin_api_info.html #1

  • //
  • guest/
  • perforce_software/
  • utils/
  • image-plugins/
  • plugin_api_info.html
  • View
  • Commits
  • Open Download .zip Download (2 KB)
<H3>Information on the Qt plugin API</H3>

The sample code and image plugin interface are not supported by Perforce Software and no warranty or guarentee 
is provided by Perforce Software for their use.
<p>
Qt provides a fairly straight forward interface for building your own image 
plugins. Trolltech has documentation for all of the necessary APIs on their
site. Here is a list of some of the more pertinent links:
<p>
<a href="http://doc.trolltech.com/3.3/plugins-howto.html">A general overview of the plugin interface.</a>
<p>
<a href="http://doc.trolltech.com/3.3/qimageformatplugin.html">Specifics on the image format plugin interface.</a>
<p>
<a href="http://doc.trolltech.com/3.3/qimageio.html#defineIOHandler">Information on the defineIOHandler method. This method has to be provided in your image plugin.</a>
<p>
<a href="http://doc.trolltech.com/3.3/qimage.html">Information on the QImage interface. QImage is very handy for manipulating and storing image data.</a>
<p>
Sample source code is available in the Perforce Public Depot <a href="http://public.perforce.com:8080//public/perforce/utils/image-plugins/src?ac=83">here</a>. 
The sample source code has been tested with Qt 3.3.4 and Visual Studio 7.1.
A solution file is provided with appropriate build settings. Please note that image plugins only work 
with the Windows version of P4V and p4thumb due to the fact that the Unix and Mac versions of P4V are compilied
statically with the Qt libraries. To build a plugin that works with the r05.1 P4V/p4thumb use the 3.3.4
Qt libraries configured to build dynamically.
<p>
To use a compiled dll with P4V or p4thumb create a folder in the same directory as the executable you
wish to use the plugin with called "imageformats". Put the dll in the new folder and restart the application.
<p>
When building your own image plugins for use with P4V and p4thumb, it is only necessary to provide a method to 
read the file format. P4V and p4thumb do not need to be able to write the image to disk using the orginal
format.
# Change User Description Committed
#1 4860 Matt Attaway Adding information of Qt image plugins.

This change includes sample source code, a list of useful links, and a compiled version of the TGA plugin for use with the r05.1 beta.