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. Transient scrollbars issue (Mac)
Forum Updated to NodeBB v4.3 + New Features

Transient scrollbars issue (Mac)

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 2.0k 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.
  • K Offline
    K Offline
    kegon
    wrote on last edited by kegon
    #1

    When I plug my wireless mouse receiver into the USB port of my MacBook Pro; the scrollbars in my application change from "transient" type to Qt::ScrollBarAlwaysOn.

    The problem is, I use a dark theme on my application and don't theme the scrollbars. Transient type are automatically alpha composited while always on type use the standard light grey on white which looks out of place (i.e. very ugly).

    Is there any way I can

    a. Force scrollbars to remain transient type; application wide ?
    or
    b. Theme scrollbars, but only non-transient type ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What part of your application ?
      What version of Qt ?
      What version of macOS ?
      What version of Xcode ?

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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What part of your application ?
        What version of Qt ?
        What version of macOS ?
        What version of Xcode ?

        K Offline
        K Offline
        kegon
        wrote on last edited by kegon
        #3

        @SGaist

        1. Anything inheriting QAbstractScrollArea, in QMainWindow or QDialog
        2. Verified with 5.5 and 5.9.1
        3. MacOS X 10.11.6
        4. I'm not "using Xcode", but development tools report Apple LLVM version 8.0.0 (clang-800.0.42.1) and installed Xcode is 8.2.1.

        I strongly suspect this issue affects a wide variety of versions because I have intermittently been tracing this problem for a long time before I realised today that it's because the mouse receiver was connected; I rarely use a mouse.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kegon
          wrote on last edited by
          #4

          My guess is that MacOS decides that mouse cannot scroll horizontally; therefore if a mouse is connected then transient scrollbars cannot be used.

          I tried styling scrollbars, but when the mouse is disconnected they are composited on top of my widget and look ugly.

          The only option I can see to have consistent and reasonable looks is to change to scrollbars always on and try to style similar to MacOS.

          Is there a way to style scrollbar arrows so they don't appear ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            What kind of receiver/mouse combo 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

            K 1 Reply Last reply
            0
            • SGaistS SGaist

              What kind of receiver/mouse combo are you using ?

              K Offline
              K Offline
              kegon
              wrote on last edited by
              #6

              @SGaist

              It's Logitech.

              But I think this happens anytime a mouse is plugged in; I think I may have seen the same thing with the Apple Mega mouse when I was testing my software in the Apple store, but I didn't realise it at the time.

              What I really need now is to be able to style QScrollBars so they look native or work out how to set native scrollbar colours.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kegon
                wrote on last edited by
                #7

                I believe that transient scrollbars aren't implemented in Qt so started a new issue in JIRA https://bugreports.qt.io/browse/QTBUG-63381

                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