Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWidget's focus chain and order
Forum Updated to NodeBB v4.3 + New Features

QWidget's focus chain and order

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 5.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    p-himik
    wrote on last edited by
    #1

    What will return QWidget::previousInFocusChain() for the first and QWidget::nextInFocusChain() for the last widget in the focus chain? There is nothing about it in the documentation.

    Also, is there any convenient way to get QList of widgets' child widgets sorted by focus order?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mirswith
      wrote on last edited by
      #2

      I suspect the last item in the focus chain would get returned. I have not used these but it sounds like these are what is used when the Tab is pushed for example. The order of these I suspect has to do with the order you add them to your layout.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        p-himik
        wrote on last edited by
        #3

        -So if the focus chain is looped how is the first widget determined when it's parent widget appears?-
        Just found QWidget::focusWidget() function.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved