Hello all,<br><br>I would like to instantiate my class as follow<br><br><br>QObject(<param1>, <parent>)<br>QObject(<parent>)<br><br>an example would be <br><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html</a><br>

<br>How can I do this without have to specify parent=<parent> in the second version<br>(I always need to supply the parent parameter, but I would like to supply it last)<br><br>I have read this<br><a href="http://stackoverflow.com/questions/356718/how-to-handle-constructors-or-methods-with-a-different-set-or-type-of-argument">http://stackoverflow.com/questions/356718/how-to-handle-constructors-or-methods-with-a-different-set-or-type-of-argument</a><br>

but all the suggested methods do not work as I want<br><br>Any idea?<br>--<br>Emmanuel<br>