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. How to remove entry from Roster xmpp

How to remove entry from Roster xmpp

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by
    #1

    I am trying to remove roster , before i do so:
    cliente.rosterManager().removerosterentry(ui->arbolConectados->currentItem()->text(0));
    I searching about this, but i couldn remove. Someone know which is the properly update. Thanks in advance.

    SGaistS 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      When asking that kind of question, you should first tell which library you are trying to use.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by
        #3

        sorry i am using qxmpp library.

        1 Reply Last reply
        0
        • RIVOPICOR RIVOPICO

          I am trying to remove roster , before i do so:
          cliente.rosterManager().removerosterentry(ui->arbolConectados->currentItem()->text(0));
          I searching about this, but i couldn remove. Someone know which is the properly update. Thanks in advance.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @RIVOPICO said in How to remove entry from Roster xmpp:

          cliente.rosterManager().removerosterentry(ui->arbolConectados->currentItem()->text(0));

          Why the 0 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by RIVOPICO
            #5

            0 is 0 arguments
            QTreeWidgetItem *item = new QTreeWidgetItem();
            item->setText(0,list[i]);

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Without knowing the class you are currently using it's pretty difficult to give you a good answer.

              Then are you sure you are getting the data from the correct column ? What does ui->arbolConectados->currentItem()->text(0)?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              RIVOPICOR 1 Reply Last reply
              0
              • SGaistS SGaist

                Without knowing the class you are currently using it's pretty difficult to give you a good answer.

                Then are you sure you are getting the data from the correct column ? What does ui->arbolConectados->currentItem()->text(0)?

                RIVOPICOR Offline
                RIVOPICOR Offline
                RIVOPICO
                wrote on last edited by RIVOPICO
                #7

                @SGaist yes because is the item selected in the qtreewidget and with 0 arguments yes it is correct

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Might be a silly question but did you explicitly check using e.g. a qDebug statement ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • RIVOPICOR Offline
                    RIVOPICOR Offline
                    RIVOPICO
                    wrote on last edited by
                    #9

                    i didnt use a lot this class? anyways this is because the owner of this repository updates but maybe you suspect other thing? thanks in advance.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Owner of what repository ?

                      I'm talking about your code sample.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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