stackeLayout->setCurrentIndex vs connect(......, , , setCurrentIndex)
just to see how it works, i made the code attached. It is not clear to me, line on the page 71 worked fine but custom slot (setPage) did not work.
Connect calls the slot, program go through if statements, but i do not see other page of stackedLayout.
What am i missing?
program go through if statements
Could you explain what exactly happens?
Did you try to debug step by step to see what happens?
This post is deleted!
@jsulm sorry for late answer, problem is solved.
it was because of my missing c++ knowledge.
@buildroot then please mark this topic as SOLVED. thanks