Results 1 to 8 of 8

Thread: QTableWidget + setCellWidget - controlling tab order

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: QTableWidget + setCellWidget - controlling tab order

    ANd why do you need QTableWidget? If you want to place several QLineEdits in a row use QHBoxLayout. In more than one row use QGridLayout.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  2. #2
    Join Date
    Sep 2009
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget + setCellWidget - controlling tab order

    Quote Originally Posted by faldżip View Post
    ANd why do you need QTableWidget? If you want to place several QLineEdits in a row use QHBoxLayout. In more than one row use QGridLayout.
    1. I would like it to look like a grid ( possibly with vertical header, but horizontal header is a must) and user has to have the ability to resize columns when "grabbing" in between two header cells.
    2. I would like to know what's going on and how to control tab traversal order (as I can't find anything in the docs and I can't google anything useful).

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 140 Times in 132 Posts

    Default Re: QTableWidget + setCellWidget - controlling tab order

    QLabels with QSplitters and QLineEdits could be your header and a whole view. You can even make it in Designer when you can easily set the tab order
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  4. #4
    Join Date
    Sep 2009
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget + setCellWidget - controlling tab order

    Quote Originally Posted by faldżip View Post
    QLabels with QSplitters and QLineEdits could be your header and a whole view. You can even make it in Designer when you can easily set the tab order
    Hm... QSpliters. Haven't noticed that. I think I will go with that idea, but still I would like to know how the heck can I control tab traversal order.

  5. #5
    Join Date
    Sep 2009
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget + setCellWidget - controlling tab order

    Quote Originally Posted by elmo View Post
    still I would like to know how the heck can I control tab traversal order.
    Bump. Really noone has a clue on how to control tab order with QTableWidget/View?

Similar Threads

  1. set Tab Order in a QTableWidget
    By jfe in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2008, 13:55
  2. Replies: 10
    Last Post: 9th July 2007, 23:02
  3. Replies: 1
    Last Post: 26th February 2006, 06:52

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
  •  
Qt is a trademark of The Qt Company.