[Development] websockets (was RE: Qt 5.3 Feature freeze is coming quite soon...)

Thiago Macieira thiago.macieira at intel.com
Sun Jan 26 20:35:21 CET 2014


On sábado, 25 de janeiro de 2014 23:14:43, Kurt Pattyn wrote:
> > When websockets becomes part of a Qt module you can consider using
> > QObjectPrivate which makes the d pointer implementation slightly cleaner
> > and removes the need for duplicate d pointers (one from qobject one for
> > the class's own implementation.
> I tried to use QObjectPrivate, but then I cannot connect to slots within the
> QObjectPrivate derived class. Statements like 'connect(object, signal,
> THIS, slot)’ fail because THIS is not derived from QObject. Have you an
> idea how to solve this?

Replace "this" with "q" and move the slot to the public class, as a 
Q_PRIVATE_SLOT.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140126/7b2d0975/attachment.sig>


More information about the Development mailing list