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. How to use scroll bar inside a DockWidget [Solved]
Forum Updated to NodeBB v4.3 + New Features

How to use scroll bar inside a DockWidget [Solved]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.1k 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.
  • G Offline
    G Offline
    GoldenAxe
    wrote on last edited by
    #1

    I have a dock widget with a text inside it and some buttons, which are in bigger size from my screen size (vertically), so they are cut off. I want a scroll bar to appear, if they are cut off like the behavioral of ScrollBarAsNeeded.
    I have tried to put all of my text and buttons inside a a Scroll Area which I put inside the DockWidget, and then I set the Scroll Area to ScrollBarAsNeeded, but I get zero changes (even if I put the scroll bar as always on).

    Thanks all

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Can you please post some sample code to illustrate concretely what you've tried so far?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GoldenAxe
        wrote on last edited by
        #3

        Has been solved by putting all the items inside the scroll area inside a layout.
        Nevertheless Thanks!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          Glad it's working! Be sure and edit your initial post to add [Solved] to the thread title. Thanks!

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          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