-
Focus Help please
Hi,
I have a TabWidget in which every tab has ScrollView. Each ScrollView in turn has 4 or more LineEdits.
When I click on the Tab bar to change the current page, one of the line edits of the current page gets the focus and the reason it shows is QFocusEvent::Mouse.
1. How can I prevent the line edits from getting the focus when the tab is changed?
2. Why is reason() showing Mouse when actually it is something else ?
Thanks a lot
-
Re: Focus Help please
-
Re: Focus Help please
Quote:
Originally Posted by
nikita
setReason/resetReason?
Can you please explain this a little more?
Thanks a lot
-
Re: Focus Help please
1. So which widget should get/retain the focus then? Maybe you could set a focus proxy?
2. Isn't clicking on a tab a mouse action? :)