[PyQt] QHostAddress is missing a method

Detlev Offenbach detlev at die-offenbachs.de
Wed Jul 27 17:57:53 BST 2011


On Dienstag, 26. Juli 2011, Phil Thompson wrote:
> On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach
> 
> <detlev at die-offenbachs.de> wrote:
> > Hello,
> > 
> > I think the QHostAddress mappings are missing the method
> 
> "toIPv6Address".
> 
> > If I
> > am right, would it be possible to add it?
> 
> What's the most useful way to represent it? Would anything be better than
> the obvious 16 byte string?
> 
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

The Qt docs say:

Returns the IPv6 address as a Q_IPV6ADDR structure. The structure consists of 
16 unsigned characters.

So in Python it should return a list (or tuple if it should be immutable) of 
16 integers.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list