C++ (Qt)void QTreeView::setExpanded ( const QModelIndex & index, bool expanded )bool QTreeView::isExpanded ( const QModelIndex & index ) constQModelIndex QStandardItemModel::indexFromItem ( const QStandardItem * item ) const
C++ (Qt)while(!asleep()) sheep++;