stackeLayout->setCurrentIndex vs connect(......, , , setCurrentIndex)
-
Hi everyone,
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?
Thank you!
-
Hi everyone,
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?
Thank you!
@buildroot said in stackeLayout->setCurrentIndex vs connect(......, , , setCurrentIndex):
program go through if statements
Could you explain what exactly happens?
Did you try to debug step by step to see what happens? -
Hi everyone,
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?
Thank you!
This post is deleted! -
@buildroot said in stackeLayout->setCurrentIndex vs connect(......, , , setCurrentIndex):
program go through if statements
Could you explain what exactly happens?
Did you try to debug step by step to see what happens? -
@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