I am programming some kind of installer with PySide and QML. By design, it should be multi-page. And I want to separate the slots for calling from QML forms into different objects (ideally, into modules, but, as I understand it, an object with slots should inherit QObject, which modules cannot do). Therefore, when the page is changed, it is also necessary to change the "controller", but since I make it visible in QML using setContextProperty, I have a problem. Is there a way to call setContextProperty from QML? Or maybe a more correct way to do this exists? Thanks.
user2083942
source share