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. Not emitted signal (qxmpp)
Forum Updated to NodeBB v4.3 + New Features

Not emitted signal (qxmpp)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k 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.
  • N Offline
    N Offline
    never_ever
    wrote on last edited by
    #1

    Hi,
    I'm using qxmpp library (+Qt5) and I try to get rooms list from server and server sends this list but I can't get it.

    I have sth like this:
    @
    QXmppDiscoveryManager *manager=new QXmppDiscoveryManager();
    client->addExtension(manager);
    connect(manager,SIGNAL(itemsReceived(QXmppDiscoveryIq)),this,SLOT(getList(QXmppDiscoveryIq)));
    manager->requestItems("conference.domain");
    @

    And then server sends the list:

    RECEIVED <iq type="result" id="qxmpp9" from="conference.domain" to="user@domain/QXmpp"><query ><item jid="room2@conference.domain" name="room2"/><item jid="room1@conference.domain" name="room1"/></query></iq>

    but I don't know why signal is not emitted (or my connecting mechanism works wrong)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      moravas
      wrote on last edited by
      #2

      Hi,

      first of all: could you publish the signature of the signal and the slot?
      I suggest you to use the function pointer style syntax to connect the signals and slots each other. It was introduced by the Qt 5.

      Regards,
      Norbert

      1 Reply Last reply
      0
      • N Offline
        N Offline
        never_ever
        wrote on last edited by
        #3

        What do you understand by publishing signature? Signal itemsReceived has a signature:
        QXmppDiscoveryIq
        or more:
        const QXmppDiscoveryIq &

        The same slot

        Oh, and manager is pointer, I have already corrected it in my previous post

        1 Reply Last reply
        0
        • N Offline
          N Offline
          never_ever
          wrote on last edited by
          #4

          No one knows where the problem could be?

          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