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. Dock window scroll bar activate without clicking
QtWS25 Last Chance

Dock window scroll bar activate without clicking

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 218 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.
  • K Offline
    K Offline
    Ketan_Lalcheta
    wrote on 17 Jan 2025, 11:41 last edited by
    #1

    Hi

    I have a dock window and it has displayed scroll bar due to more content present into dialog.

    What I need is to scroll through content , but it forces me to click somewhere on dialog and then mosue scroll button works.

    I have tried to set the focus on the dialog i.e. dock window itself , but no success. What should be done when user do not need to click on dialog and it still allow user to scroll the content through mouse scroll button.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Jan 2025, 20:09 last edited by
      #2

      Hi,

      AFAIR, that highly depends on your OS. Some do not allow interaction with unfocused window. Which one are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gaobo
        wrote on 18 Jan 2025, 00:23 last edited by
        #3

        Maybe you can change the dialog's focus policy to StrongFocus. I also found that the widget still can't recive some mouse wheel event even if it's focus policy is StrongFocus.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SarahBeth
          wrote on 18 Jan 2025, 11:12 last edited by SarahBeth
          #4

          I also had same problem.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Ketan_Lalcheta
            wrote on 18 Jan 2025, 11:18 last edited by
            #5

            Yeah @Gaobo , It did not work with strong focus as well.
            @SGaist , I am windows 11.

            Why scrolling does not work when window has no focus and focus is set? Is it a bug or a known limitation due to some issue it may cause?

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Ketan_Lalcheta
              wrote on 18 Jan 2025, 11:35 last edited by
              #6

              @SarahBeth , What you did then? It was kept as limitation only or has some work around?

              1 Reply Last reply
              0

              1/6

              17 Jan 2025, 11:41

              • Login

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