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. ListWidget Focus Problem.
QtWS25 Last Chance

ListWidget Focus Problem.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 284 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.
  • D Offline
    D Offline
    DJ Kim
    wrote on last edited by DJ Kim
    #1

    There are two widgets(QButton, QListWidget) in Dialog Window.
    I can use only keyboard.
    When I open the Window QButton has focus. Then I input tab key. At this point both widget has focus, if I input Enter key both slot function is called. (button->click(), listWidget->itemActivated())
    alt text
    (both widget's focusPolicy is TabFocus)

    jsulmJ 1 Reply Last reply
    0
    • D DJ Kim

      There are two widgets(QButton, QListWidget) in Dialog Window.
      I can use only keyboard.
      When I open the Window QButton has focus. Then I input tab key. At this point both widget has focus, if I input Enter key both slot function is called. (button->click(), listWidget->itemActivated())
      alt text
      (both widget's focusPolicy is TabFocus)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @DJ-Kim said in ListWidget Focus Problem.:

      both widget has focus

      This sounds very strange.
      Can you please upload a minimal application showing this issue?
      Also, which Qt version do you use?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DJ Kim
        wrote on last edited by
        #3

        Thanks for your reply.
        My Qt version is 5.12.9, host os is Windows10.
        I attached a sample code, test step is below

        1. run
        2. input tab key
        3. down arrow
        4. Enter key
          (do not use mouse device)

        I can not attach files, this is my git repo. https://github.com/kdj6724/QT_test

        jsulmJ 1 Reply Last reply
        0
        • D DJ Kim

          Thanks for your reply.
          My Qt version is 5.12.9, host os is Windows10.
          I attached a sample code, test step is below

          1. run
          2. input tab key
          3. down arrow
          4. Enter key
            (do not use mouse device)

          I can not attach files, this is my git repo. https://github.com/kdj6724/QT_test

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DJ-Kim I can reproduce on Linux. Not sure though why this happens.
          You can check Qt bug tracker and file a bug if this is not already known issue.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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