0

I am using QtCreator and I need to create a program which when clicking a button in one (.ui) frame, changes focus to another (.ui) frame. How can I do that?

1
  • What have you tried so far? Where are you stuck? Have you tried any of the examples which are installed with QtCreator? Commented Jan 24, 2012 at 22:03

2 Answers 2

1

I suggest putting your two forms into different pages of a QStackedWidget, and setting the active widget based on which of the two you want to have visible.

Sign up to request clarification or add additional context in comments.

1 Comment

do you have any small example or use full links for how to put forms in QStackedWidget and the Navigation between two forms
0

Have a look at the activateWindow method of QWidget. Link

I hope this helps other people coming here by google.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.