void QHeaderView::sectionClicked ( int logicalIndex ) [signal]
connect(view->verticalHeader(), SIGNAL(sectionClicked(int)), this, SLOT(sort(int)));
void QDbfReader::item_selected(QTreeWidgetItem* item, int column){ if (item->text(0) == "Objects" || item->text(0) == "Tables" || item->text(0) == "Records" ) return; if (item->parent()->text(0) == "Objects") select_object(item); if (item->parent()->text(0) == "Tables") select_table(item); if (item->parent()->text(0) == "Records") { }}
C++ (Qt)if( item->parent() ) // parent != 0 // Имеет parentelse // parent == 0 // Не имеет parent