QStackWidget page's widgets load multiple time
-
hello all ,When I load the first index page on the Qstackwidget, there is a button. Initially, when I load this page and click the button, it works correctly. However, if I navigate to another page and then return to the first page and click the button again, the button's action is triggered twice. The number of times the button's action is called corresponds to the number of times I have loaded that index page. how to solve it ?
-
hello all ,When I load the first index page on the Qstackwidget, there is a button. Initially, when I load this page and click the button, it works correctly. However, if I navigate to another page and then return to the first page and click the button again, the button's action is triggered twice. The number of times the button's action is called corresponds to the number of times I have loaded that index page. how to solve it ?
@KavadeDipak18
Hi
How do you "load" the page again?
Sounds like you are call the same connect multiple times and it will then trigger multiple times. -
hello all ,When I load the first index page on the Qstackwidget, there is a button. Initially, when I load this page and click the button, it works correctly. However, if I navigate to another page and then return to the first page and click the button again, the button's action is triggered twice. The number of times the button's action is called corresponds to the number of times I have loaded that index page. how to solve it ?
@KavadeDipak18 said in QStackWidget page's widgets load multiple time:
how to solve it ?
Show code....