PDA

View Full Version : QTableView change tab order direction to vertical instead of horizontal



TonyInSoMD
5th June 2019, 20:02
I want to make it so that pressing the tab key in a QTableView makes focus move to the next cell down instead of the next cell to the right. Is there a simple way to do this? I could probably do it by putting in a tab key press event handler, but that would take a lot of coding and would be real easy to mess up. Not really worth the work.

anda_skoa
7th June 2019, 08:29
Could probably be done with an event filter.

Catch the tab event and send a down event instead.

Cheers,
_

TonyInSoMD
7th June 2019, 16:00
Could probably be done with an event filter.

Catch the tab event and send a down event instead.

Cheers,
_

Yeah, I thought of that one, I was just hoping there was a setting in table view I wasn't seeing that would do it. No such luck I see. Thanks for replying and thanks for verifying what I was thinking was the right path. Validation is always nice.:)

By the way, do you know if there's a way to mark a question as solved? I would have to say this one is.

anda_skoa
8th June 2019, 09:26
By the way, do you know if there's a way to mark a question as solved? I would have to say this one is.

No, I don't think there is.

Cheers,
_