Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Socket gets called twice!?

    General and Desktop
    1
    1
    1651
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kfraserj last edited by

      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]

      1 Reply Last reply Reply Quote 0
      • First post
        Last post