Programming Keyboard Focus!
I have a tabbed interface and I can move between the tabs by using two push buttons named next and back. I want to control the keyboard focus to be on different buttons on different tabs.
How do I do this?
1 reply
I don’t know if this is what you want, but I have a tabbed interface and an add button in my pages, I can press “Ctrl” + “+” and only the active tab respond
- connect(add, SIGNAL(triggered()), this, SLOT(slotAdd()));
- this->addAction(add);
Edit: I’m so sorry I misunderstand the question, you can set focus with
- setFocus()
and a QTabWidget has a signal called
- currentChanged
so you just have to acess a child of your new Widget and set the focus to it..
You must log in to post a reply. Not a member yet? Register here!

