Unsolved How to remove entry from Roster xmpp
-
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. -
Hi,
When asking that kind of question, you should first tell which library you are trying to use.
-
sorry i am using qxmpp library.
-
@RIVOPICO said in How to remove entry from Roster xmpp:
cliente.rosterManager().removerosterentry(ui->arbolConectados->currentItem()->text(0));
Why the 0 ?
-
0 is 0 arguments
QTreeWidgetItem *item = new QTreeWidgetItem();
item->setText(0,list[i]); -
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)
? -
@SGaist yes because is the item selected in the qtreewidget and with 0 arguments yes it is correct
-
Might be a silly question but did you explicitly check using e.g. a qDebug statement ?
-
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.
-
Owner of what repository ?
I'm talking about your code sample.