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. Tab order in Dock Window
QtWS25 Last Chance

Tab order in Dock Window

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.5k Views
  • 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.
  • B Offline
    B Offline
    blex
    wrote on last edited by
    #1

    If the Tab key is pressed in the Dock Window then the focus changed to the next widget in the specified tab order.
    But when the Tab key is pressed on the last child in the Dock Window then the focus changed in unpredictable way to another application Dock Window or central widget. Even more, the Shift-Tab keys do not return focus to the last widget.

    Can anybody advice me how to move focus from the last widget in the Dock Window to the first one on Tab key press. I know about setTabOrder() function, but it does not help in this case.


    Oleksiy Balabay

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tbscope
      wrote on last edited by
      #2

      Focus chains are on a window basis.

      There's no such thing as a dock window in Qt. There's a dock widget though that sometimes acts as a window (when detached).

      You can try not setting a parent (but I don't know the results of that).
      Or setting the Qt::Window flag.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        blex
        wrote on last edited by
        #3

        Thank you for reply.

        [quote author="tbscope" date="1290405320"]There's no such thing as a dock window in Qt. There's a dock widget though that sometimes acts as a window (when detached).[/quote]

        You are right, I mean QDockWidget (in Qt3 it was called QDockWindow).

        [quote author="tbscope" date="1290405320"]You can try not setting a parent (but I don't know the results of that).[/quote]

        It will be re-parented when added to QMainWindow dock area.

        [quote author="tbscope" date="1290405320"]Or setting the Qt::Window flag.[/quote]

        The problem exists if the widget is docked.


        Oleksiy Balabay

        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