Roster Item is the equivalent of TreeItem in the example, appendChild is already there I just added removeChild.

appendChild:
Qt Code:
  1. m_children.append(item);
To copy to clipboard, switch view to plain text mode 

removeChild:
Qt Code:
  1. m_children.removeAll(item);
To copy to clipboard, switch view to plain text mode