Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Possible to default the qApp to ScrollBarOverlap?
Qt 6.12 LTS is out! See what's new in the release blog

Possible to default the qApp to ScrollBarOverlap?

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

    About the pixel metric flag: PM_ScrollView_ScrollBarOverlap, is it possible to 'default' the entire application QScrollBars to overlap?

    I mean, whenever a QScrollBar be created it defaults the overlapping flag PM_ScrollView_ScrollBarOverlap to true, or the unique way is installing a proxy filter on each control that contains a QScrollBar and return 1 when its the flag?

    Chris KawaC 1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Don't install it on individual scrollbars. Use it on your application object like in the example code I linked.

      1 Reply Last reply
      1
      • D Daniella

        About the pixel metric flag: PM_ScrollView_ScrollBarOverlap, is it possible to 'default' the entire application QScrollBars to overlap?

        I mean, whenever a QScrollBar be created it defaults the overlapping flag PM_ScrollView_ScrollBarOverlap to true, or the unique way is installing a proxy filter on each control that contains a QScrollBar and return 1 when its the flag?

        Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Daniella When you need to change any style defaults the way to do it is use a proxy style and simply return the desired value for the metric you want.

        D 1 Reply Last reply
        1
        • Chris KawaC Chris Kawa

          @Daniella When you need to change any style defaults the way to do it is use a proxy style and simply return the desired value for the metric you want.

          D Offline
          D Offline
          Daniella
          wrote on last edited by Daniella
          #3

          I have installed a proxy style in the qscrollbar but it never calls the PM_ScrollView flag.

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Don't install it on individual scrollbars. Use it on your application object like in the example code I linked.

            1 Reply Last reply
            1
            • D Daniella has marked this topic as solved on

            • Login

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