Changing State of a Component from another Component
I am a newbie in QT. In my application I have a headerbar which is a component. This headerbar component have two states "base" and "state1". on Homescreen i want to show the base state but on screen 2 i want to show the state1 of headerbar. I tried setting the headbar.state variable in the screen2 but that does not work.
Is there a way to do this?
Welcome to devnet.
Take a look to a signals and slots: