<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html><head><title>QPyDesignerTaskMenuExtension Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } td.postheader { font-family: sans-serif } tr.address { font-family: sans-serif } body { background: #ffffff; color: black; } </style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QPyDesignerTaskMenuExtension Class Reference<br /><sup><sup>[<a href="qtdesigner.html">QtDesigner</a> module]</sup></sup></h1><p>Inherits <a href="qobject.html">QObject</a> and <a href="qdesignertaskmenuextension.html">QDesignerTaskMenuExtension</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qpydesignertaskmenuextension.html#QPyDesignerTaskMenuExtension">__init__</a></b> (<i>self</i>, QObject <i>parent</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QPyDesignerTaskMenuExtension class is provided to work around the fact that it is not possible for a Python class to derive from multiple Qt classes.</p> <p>In order to add custom entries to Qt Designer's task menu you should implement a Python class derived from QPyDesignerTaskMenuExtension rather than one derived from <a href="qobject.html">QObject</a> and <a href="qdesignertaskmenuextension.html">QDesignerTaskMenuExtension</a>.</p> <hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QPyDesignerTaskMenuExtension" />QPyDesignerTaskMenuExtension.__init__ (<i>self</i>, <a href="qobject.html">QObject</a> <i>parent</i>)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.4 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.3</td></tr></table></div></address></body></html>