[PyKDE] QWidget.reparent trouble

Yves BAILLY kafka.fr at netcourrier.com
Sun May 20 11:19:07 BST 2001


Hi all,

When trying to use ("self" being a subclass of QDialog) :

self.reparent(self.find(0), qt.QPoint(10, 10))

I get this error :
TypeError: Argument 2 of QWidget.reparent() has an invalid type

This is working (found in the Qt documentation) :

self.reparent(self.find(0), 
              self.getWFlags() & (~(qt.Qt.WType_Mask)), 
              qt.QPoint(10, 10))

So, is the first version (redefinition of the second one according to
the Qt documentation) missing in PyQt ?

Regards,

-- 
   .~.          __________________________  
   /V\   Linux /                          \        ___ 
  // \\  Power |        Yves BAILLY       |      /"   "\
 /(   )\       | kafka.fr at netcourrier.com |     ( @ _ @ )
- ^^-^^ -------\__________________________/----oOO (_) OOo------
LUG Dijon : http://www.coagul.org




More information about the PyQt mailing list