pythonでfoobarのalternativeを作る 24 version 1

2019/05/27 17:14 by yamasyuh68
  :追加された部分   :削除された部分
(差分が大きい場合、文字単位では表示しません)
tree メモ # prog
QTreeView Class Reference
--------------------------
setModel (self, QAbstractItemModel model)

QAbstractItemView.setModel (self, QAbstractItemModel model)

Sets the model for the view to present.

This function will create and set a new selection model, replacing any model that was previously set with setSelectionModel(). However, the old selection model will not be deleted as it may be shared between several views. We recommend that you delete the old selection model if it is no longer required. This is done with the following code:
 QItemSelectionModel *m = view->selectionModel();
 view->setModel(new model);
 delete m;



QTreeView.setRowHidden 
----------------------
これで一時的に隠すような考え方ができないか??






      

QTreeView Class Reference

setModel (self, QAbstractItemModel model)

QAbstractItemView.setModel (self, QAbstractItemModel model)

Sets the model for the view to present.

This function will create and set a new selection model, replacing any model that was previously set with setSelectionModel(). However, the old selection model will not be deleted as it may be shared between several views. We recommend that you delete the old selection model if it is no longer required. This is done with the following code:
QItemSelectionModel *m = view->selectionModel();
view->setModel(new model);
delete m;

QTreeView.setRowHidden

これで一時的に隠すような考え方ができないか??