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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to