Socket gets called twice!?



  • I have a program that when the signal is emitted the slot gets called twice. There is only one connect attached. On the thread that uses the same signal/slot I do not have this problem. Just when I send it thru this 2nd thread. The only difference i see is when the signal is emitted in this thread the compressEvent function is called and false is returned. Any of the traffic that works properly does not go into this function.

    [CODE]
    QSharedPointer<KernelThread> module(new (KernelThread));
    qRegisterMetaType<Message>("Message");
    connect(module.data(), SIGNAL(IncomingMessage(const QString&, Message*)),
    SLOT(ProcessModuleMessage(const QString&, Message*)), Qt::QueuedConnection);
    [/CODE]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.