Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Socket gets called twice!?
Forum Updated to NodeBB v4.3 + New Features

Socket gets called twice!?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.8k Views 1 Watching
  • 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 Offline
    K Offline
    kfraserj
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved