QCombBox currentIndexChange( int ); // 選中的下拉框改變時(shí)候觸發(fā)
QLineEdit? textEdited ();? ? //? ? 編輯框的內(nèi)容被修改的時(shí)候觸發(fā)
//? 整個(gè)treeView設(shè)置為不可編輯花吟,即只讀模式
m_treeView ->setEditTriggers? ( QAbstractItemView? :: NoEditTriggers) ;
//? 當(dāng)一個(gè)QTreeView對象的某個(gè)數(shù)據(jù)子項(xiàng)被點(diǎn)擊鸠珠,發(fā)送信號? QModelIndex 類型參數(shù)提供點(diǎn)擊的? ? ? ? item? 的位置
void? QAbstractItemView? :: clicked (? const? QModelIndex? & index)? [singal]
This? signal? is? emitted? when? a? mouse? buttton? is? clicked ,the? item? the? mouse? was? clicked? on is specified? by? index? .the? signal? is only? emited? when? the index? is valid.
//? 從model里面根據(jù)index獲取item? QAbstractItemModel? ::? itemFromIndex (QModelIndex);
//? [委托] 從model里面根據(jù)index獲取data惯退,? index->model ()->data ( index , Qt :: EditRole)