Results 1 to 4 of 4

Thread: QTableView change tab order direction to vertical instead of horizontal

  1. #1
    Join Date
    Mar 2014
    Location
    USA
    Posts
    85
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default QTableView change tab order direction to vertical instead of horizontal

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableView change tab order direction to vertical instead of horizontal

    Could probably be done with an event filter.

    Catch the tab event and send a down event instead.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    TonyInSoMD (7th June 2019)

  4. #3
    Join Date
    Mar 2014
    Location
    USA
    Posts
    85
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTableView change tab order direction to vertical instead of horizontal

    Quote Originally Posted by anda_skoa View Post
    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.

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableView change tab order direction to vertical instead of horizontal

    Quote Originally Posted by TonyInSoMD View Post
    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,
    _

Similar Threads

  1. Change initial number of QTableView Vertical Header
    By guidupas in forum Qt Programming
    Replies: 5
    Last Post: 19th June 2014, 02:30
  2. QTableView Drag to change item order not working
    By Marlon Smith in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2012, 20:44
  3. Qtableview Vertical header order
    By Darthspawn in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2010, 16:10
  4. How to change the order of QTableView Column ?
    By Kode.Cooper in forum Qt Programming
    Replies: 1
    Last Post: 27th January 2010, 09:55
  5. How to change columns order in a QTableView...
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2009, 11:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.