bool compareLessThan(CbInteractiveInviteItem *i1, CbInteractiveInviteItem *i2)//很关键,这里不能是类里面的函数 { return i1->iconType() < i2->iconType(); } void CbInteractiveInviteList::updateList() { qSort(m_itemList.begin(), m_itemList.end(), compareLessThan); }--- 1. 2. 3....