Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 565

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:01:21 CEST 2007 -->
<TITLE>
QIcon
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QIcon class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QIcon";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QHoverEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QIcon.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QIcon.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QIcon</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QIcon</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QIcon</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

<P>
<p>The <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> class provides scalable icons in different modes and states.</p>
<p>A <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> can generate smaller, larger, active, and disabled pixmaps from the set of pixmaps it is given. Such pixmaps are used by Qt widgets to show an icon representing a particular action.</p>
<p>The simplest use of <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> is to create one from a <a href="QPixmap.html"><tt>QPixmap</tt></a> file or resource, and then use it, allowing Qt to work out all the required icon styles and sizes. For example:</p>
<pre>    QToolButton *button = new QToolButton;
    button-&gt;setIcon(QIcon(&quot;open.xpm&quot;));</pre>
<p>To undo a <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a>, simply set a null icon in its place:</p>
<pre>    button-&gt;setIcon(QIcon());</pre>
<p>Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.</p>
<p>When you retrieve a pixmap using pixmap(<a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>, Mode, State), and no pixmap for this given size, mode and state has been added with <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a> or <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a>, then <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> will generate one on the fly. This pixmap generation happens in a <a href="QIconEngineV2.html"><tt>QIconEngineV2</tt></a>. The default engine scales pixmaps down if required, but never up, and it uses the current style to calculate a disabled appearance. By using custom icon engines, you can customize every aspect of generated icons. With QIconEnginePluginV2 it is possible to register different icon engines for different file suffixes, so you could provide a SVG icon engine or any other scalable format.</p>
<a name="making-classes-that-use-qicon"></a>
<h3>Making Classes that Use QIcon</h3>
<p>If you write your own widgets that have an option to set a small pixmap, consider allowing a <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> to be set for that pixmap. The Qt class <a href="QToolButton.html"><tt>QToolButton</tt></a> is an example of such a widget.</p>
<p>Provide a method to set a <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a>, and when you draw the icon, choose whichever pixmap is appropriate for the current state of your widget. For example:</p>
<pre>     void MyWidget::drawIcon(QPainter *painter, QPoint pos)
     {
         QPixmap pixmap = icon.pixmap(QSize(22, 22),
                                        isEnabled() ? QIcon::Normal
                                                    : QIcon::Disabled,
                                        isOn() ? QIcon::On
                                               : QIcon::Off);
         painter-&gt;drawPixmap(pos, pixmap);
     }</pre>
<p>You might also make use of the <tt>Active</tt> mode, perhaps making your widget <tt>Active</tt> when the mouse is over the widget (see <tt>QWidget::enterEvent</tt>), while the mouse is pressed pending the release that will activate the function, or when it is the currently selected item. If the widget can be toggled, the &quot;On&quot; mode might be used to draw a different icon.</p>
<p align="center"><img src="%2E%2E/images/icon.png" alt="QIcon" /></p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/guibooks.html#fowler">GUI Design Handbook: Iconic Label</tt></a>, 
<CODE>Example</tt></CODE></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum type describes the mode for which a pixmap is intended to be used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the state for which a pixmap is intended to be used.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon()">QIcon</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a null icon.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon(com.trolltech.qt.gui.QIcon)">QIcon</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A>&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a copy of <tt>other</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)">QIcon</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QIconEngine.html" title="class in com.trolltech.qt.gui">QIconEngine</A>&nbsp;engine)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an icon with a specific icon <tt>engine</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngineV2)">QIcon</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QIconEngineV2.html" title="class in com.trolltech.qt.gui">QIconEngineV2</A>&nbsp;engine)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an icon with a specific icon <tt>engine</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon(com.trolltech.qt.gui.QPixmap)">QIcon</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an icon from a <tt>pixmap</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#QIcon(java.lang.String)">QIcon</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an icon from the file with the given <tt>fileName</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#actualSize(com.trolltech.qt.core.QSize)">actualSize</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>(<tt>size</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)">actualSize</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
           <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>(<tt>size</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">actualSize</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
           <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
           <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the actual size of the icon for the requested <tt>size</tt>, <tt>mode</tt>, and <tt>state</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addFile(java.lang.String)">addFile</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, QSize(), Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize)">addFile</A></B>(java.lang.String&nbsp;fileName,
        <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, <tt>size</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)">addFile</A></B>(java.lang.String&nbsp;fileName,
        <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, <tt>size</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">addFile</A></B>(java.lang.String&nbsp;fileName,
        <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
        <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a pixmap from the file with the given <tt>fileName</tt> to the icon, as a specialization for <tt>size</tt>, <tt>mode</tt> and <tt>state</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap)">addPixmap</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a>(<tt>pixmap</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode)">addPixmap</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
          <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a>(<tt>pixmap</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">addPixmap</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
          <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
          <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds <tt>pixmap</tt> to the icon, as a specialization for <tt>mode</tt> and <tt>state</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#cacheKey()">cacheKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a number that identifies the contents of this <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QIcon instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#isNull()">isNull</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the icon is empty; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#nativePointerArray(com.trolltech.qt.gui.QIcon[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QIcon array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      int&nbsp;x,
      int&nbsp;y,
      int&nbsp;w,
      int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, Qt::AlignCenter, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      int&nbsp;x,
      int&nbsp;y,
      int&nbsp;w,
      int&nbsp;h,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, <tt>alignment</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      int&nbsp;x,
      int&nbsp;y,
      int&nbsp;w,
      int&nbsp;h,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, <tt>alignment</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      int&nbsp;x,
      int&nbsp;y,
      int&nbsp;w,
      int&nbsp;h,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints the icon into the rectangle <a href="%2E%2E/core/QRect.html"><tt>QRect</tt></a>(<tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, Qt::AlignCenter, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, <tt>alignment</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, <tt>alignment</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
      <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
      <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
      <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses the <tt>painter</tt> to paint the icon with specified <tt>alignment</tt>, required <tt>mode</tt>, and <tt>state</tt> into the rectangle <tt>rect</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int)">pixmap</A></B>(int&nbsp;extent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>extent</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int, int)">pixmap</A></B>(int&nbsp;w,
       int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>w</tt>, <tt>h</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int, int, com.trolltech.qt.gui.QIcon.Mode)">pixmap</A></B>(int&nbsp;w,
       int&nbsp;h,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>w</tt>, <tt>h</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int, int, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</A></B>(int&nbsp;w,
       int&nbsp;h,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pixmap of size <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(<tt>w</tt>, <tt>h</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int, com.trolltech.qt.gui.QIcon.Mode)">pixmap</A></B>(int&nbsp;extent,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>extent</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(int, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</A></B>(int&nbsp;extent,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pixmap of size <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(<tt>extent</tt>, <tt>extent</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(com.trolltech.qt.core.QSize)">pixmap</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>size</tt>, Normal, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)">pixmap</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>size</tt>, <tt>mode</tt>, Off).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
       <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pixmap with the requested <tt>size</tt>, <tt>mode</tt>, and <tt>state</tt>, generating one if necessary.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QIcon from arg__1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QIcon.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQIcon to arg__1.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QIcon(com.trolltech.qt.gui.QPixmap)"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</PRE>
<DL>
<DD><p>Constructs an icon from a <tt>pixmap</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QIcon(java.lang.String)"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Constructs an icon from the file with the given <tt>fileName</tt>. The file will be loaded on demand.</p>
<p>If <tt>fileName</tt> contains a relative path (e.g&#x2e; the filename only) the relevant file must be found relative to the runtime working directory.</p>
<p>The file name can be either refer to an actual file on disk or to one of the application's embedded resources. See the <a href="%2E%2E/resources.html">Resource System</tt></a> overview for details on how to embed images and other resource files in the application's executable.</p>
<p>Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.</p>
<P>
</DL>
<HR>

<A NAME="QIcon(com.trolltech.qt.gui.QIconEngineV2)"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>(<A HREF="../../../../com/trolltech/qt/gui/QIconEngineV2.html" title="class in com.trolltech.qt.gui">QIconEngineV2</A>&nbsp;engine)</PRE>
<DL>
<DD><p>Creates an icon with a specific icon <tt>engine</tt>. The icon takes ownership of the engine.</p>
<P>
</DL>
<HR>

<A NAME="QIcon(com.trolltech.qt.gui.QIcon)"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>(<A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A>&nbsp;other)</PRE>
<DL>
<DD><p>Constructs a copy of <tt>other</tt>. This is very fast.</p>
<P>
</DL>
<HR>

<A NAME="QIcon()"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>()</PRE>
<DL>
<DD><p>Constructs a null icon.</p>
<P>
</DL>
<HR>

<A NAME="QIcon(com.trolltech.qt.gui.QIconEngine)"><!-- --></A><H3>
QIcon</H3>
<PRE>
public <B>QIcon</B>(<A HREF="../../../../com/trolltech/qt/gui/QIconEngine.html" title="class in com.trolltech.qt.gui">QIconEngine</A>&nbsp;engine)</PRE>
<DL>
<DD><p>Creates an icon with a specific icon <tt>engine</tt>. The icon takes ownership of the engine.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
actualSize</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>actualSize</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                              <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>(<tt>size</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="actualSize(com.trolltech.qt.core.QSize)"><!-- --></A><H3>
actualSize</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>actualSize</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>(<tt>size</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
actualSize</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>actualSize</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                              <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                              <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Returns the actual size of the icon for the requested <tt>size</tt>, <tt>mode</tt>, and <tt>state</tt>. The result might be smaller than requested, but never larger.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>pixmap</tt></a>, 
<a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>paint</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
addFile</H3>
<PRE>
public final void <B>addFile</B>(java.lang.String&nbsp;fileName,
                          <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                          <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, <tt>size</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addFile(java.lang.String, com.trolltech.qt.core.QSize)"><!-- --></A><H3>
addFile</H3>
<PRE>
public final void <B>addFile</B>(java.lang.String&nbsp;fileName,
                          <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, <tt>size</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addFile(java.lang.String)"><!-- --></A><H3>
addFile</H3>
<PRE>
public final void <B>addFile</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>(<tt>fileName</tt>, QSize(), Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
addFile</H3>
<PRE>
public final void <B>addFile</B>(java.lang.String&nbsp;fileName,
                          <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                          <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                          <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Adds a pixmap from the file with the given <tt>fileName</tt> to the icon, as a specialization for <tt>size</tt>, <tt>mode</tt> and <tt>state</tt>. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.</p>
<p>If <tt>fileName</tt> contains a relative path (e.g&#x2e; the filename only) the relevant file must be found relative to the runtime working directory.</p>
<p>The file name can be either refer to an actual file on disk or to one of the application's embedded resources. See the <a href="%2E%2E/resources.html">Resource System</tt></a> overview for details on how to embed images and other resource files in the application's executable.</p>
<p>Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
addPixmap</H3>
<PRE>
public final void <B>addPixmap</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a>(<tt>pixmap</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addPixmap(com.trolltech.qt.gui.QPixmap)"><!-- --></A><H3>
addPixmap</H3>
<PRE>
public final void <B>addPixmap</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a>(<tt>pixmap</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
addPixmap</H3>
<PRE>
public final void <B>addPixmap</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Adds <tt>pixmap</tt> to the icon, as a specialization for <tt>mode</tt> and <tt>state</tt>.</p>
<p>Custom icon engines are free to ignore additionally added pixmaps.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="cacheKey()"><!-- --></A><H3>
cacheKey</H3>
<PRE>
public final long <B>cacheKey</B>()</PRE>
<DL>
<DD><p>Returns a number that identifies the contents of this <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> object. Distinct <a href="QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)"><tt>QIcon</tt></a> objects can have the same key if they refer to the same contents.</p>
<p>The <a href="QIcon.html#cacheKey()"><tt>cacheKey</tt></a> will change when the icon is altered via <a href="QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addPixmap</tt></a> or <a href="QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>addFile</tt></a>.</p>
<p>Cache keys are mostly useful in conjunction with caching.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QPixmap::cacheKey</tt></DL>
</DD>
</DL>
<HR>

<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public final boolean <B>isNull</B>()</PRE>
<DL>
<DD><p>Returns true if the icon is empty; otherwise returns false.</p>
<p>An icon is empty if it has neither a pixmap nor a filename.</p>
<p>Note: Even a non-null icon might not be able to create valid pixmaps, eg. if the file does not exist or cannot be read.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Writes thisQIcon to arg__1.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Reads a QIcon from arg__1.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, <tt>alignment</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, <tt>alignment</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>rect</tt>, Qt::AlignCenter, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRect, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Uses the <tt>painter</tt> to paint the icon with specified <tt>alignment</tt>, required <tt>mode</tt>, and <tt>state</tt> into the rectangle <tt>rect</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>, 
<a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>pixmap</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        int&nbsp;x,
                        int&nbsp;y,
                        int&nbsp;w,
                        int&nbsp;h,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, <tt>alignment</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        int&nbsp;x,
                        int&nbsp;y,
                        int&nbsp;w,
                        int&nbsp;h,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, <tt>alignment</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, int, int, int, int)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        int&nbsp;x,
                        int&nbsp;y,
                        int&nbsp;w,
                        int&nbsp;h)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">paint</tt></a>(<tt>painter</tt>, <tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>, Qt::AlignCenter, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
paint</H3>
<PRE>
public final void <B>paint</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                        int&nbsp;x,
                        int&nbsp;y,
                        int&nbsp;w,
                        int&nbsp;h,
                        <A HREF="../../../../com/trolltech/qt/core/Qt.Alignment.html" title="class in com.trolltech.qt.core">Qt.Alignment</A>&nbsp;alignment,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                        <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Paints the icon into the rectangle <a href="%2E%2E/core/QRect.html"><tt>QRect</tt></a>(<tt>x</tt>, <tt>y</tt>, <tt>w</tt>, <tt>h</tt>).</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;extent,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>extent</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;extent)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>extent</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;extent,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Returns a pixmap of size <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(<tt>extent</tt>, <tt>extent</tt>). The pixmap might be smaller than requested, but never larger.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int, int, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;w,
                            int&nbsp;h,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>w</tt>, <tt>h</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int, int)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;w,
                            int&nbsp;h)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>w</tt>, <tt>h</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(int, int, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(int&nbsp;w,
                            int&nbsp;h,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Returns a pixmap of size <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(<tt>w</tt>, <tt>h</tt>). The pixmap might be smaller than requested, but never larger.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>size</tt>, <tt>mode</tt>, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(com.trolltech.qt.core.QSize)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size)</PRE>
<DL>
<DD><p>Equivalent to <a href="QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)">pixmap</tt></a>(<tt>size</tt>, Normal, Off).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><!-- --></A><H3>
pixmap</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> <B>pixmap</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui">QIcon.Mode</A>&nbsp;mode,
                            <A HREF="../../../../com/trolltech/qt/gui/QIcon.State.html" title="enum in com.trolltech.qt.gui">QIcon.State</A>&nbsp;state)</PRE>
<DL>
<DD><p>Returns a pixmap with the requested <tt>size</tt>, <tt>mode</tt>, and <tt>state</tt>, generating one if necessary. The pixmap might be smaller than requested, but never larger.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>actualSize</tt></a>, 
<a href="QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)"><tt>paint</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QIcon instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QIcon[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QIcon.html" title="class in com.trolltech.qt.gui">QIcon</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QIcon array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QHoverEvent.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QIcon.Mode.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QIcon.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QIcon.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>