rqt_reconfigure.treenode_item_model module

class rqt_reconfigure.treenode_item_model.TreenodeItemModel(*args: Any, **kwargs: Any)

Bases: QStandardItemModel

This class is made only for this purpose.

To hold QStandardItem instances associated with QModelIndex. QStandardItemModel has methods to return it by index called itemFromIndex, but in some cases the method doesn’t work for unknown reasons. Ref. question asked: http://stackoverflow.com/questions/14646979/strange-index-values-from-qstandarditemmodel

Author:

Isaac Saito

get_index_from_grn(grn)

Get the index from grn.

Return type:

QPersistentModelIndex. None if the corresponding item isn’t found.

set_item_from_index(grn, qpindex)