Can I get a python object from its memory address?

后端 未结 2 1323
春和景丽
春和景丽 2020-12-18 22:38

I\'m learning how to use Qt with PyQt, and I have a QTabelView with a StandardItemModel I\'ve populated the model successfully and hooked up the itemChanged signal to a slot

2条回答
  •  执笔经年
    2020-12-18 23:17

    You need to hold a reference to an object (i.e. assign it to a variable or store it in a list).

    There is no language support for going from an object address directly to an object (i.e. pointer dereferencing).

提交回复
热议问题