Hello,

I can obtain index of child and text of parent, but I am interesting to obtain index of both.
Qt Code:
  1. QTreeWidgetItem *parent = myItem->parent();
  2. QString nameItem;
  3. int index;
  4.  
  5. index = parent->indexOfChild(ui->deviceTree->currentItem());
  6. nameItem = parent->text(indice);
To copy to clipboard, switch view to plain text mode 

any advice???
Best regards