I have a function implemented in CPython (in fact, boost-python but I guess is the same) that receives as parameter a QWidget from python code and i would like to recover the pointer to the QObject. Formerly we were using PyQt and used some complex sip api >From some boost python code (CPython for the sake of simplicity)