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. Scrollbar doesn't appear on QListWidget when item starts on visible area.

Scrollbar doesn't appear on QListWidget when item starts on visible area.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscrollbarqscrollareaqlistwidgetqlistview
3 Posts 2 Posters 1.5k 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.
  • T Offline
    T Offline
    tokafr
    wrote on last edited by
    #1

    Hello
    when I add new widget to QListWidget I need to have a scrollbar when items goes over visible area.
    but when I add item to list and this item starts in visible area and goes over the area, I have no scrollbar and last item is partly visible. is there any chance to have a scrollbar in this case?

    1 Reply Last reply
    0
    • the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      have you set setVerticalScrollBarPolicy to any other value than Qt::ScrollBarAsNeeded ?

      -- No support in PM --

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tokafr
        wrote on last edited by tokafr
        #3

        @the_
        no it is Qt::ScrollBarAsNeeded.but scrolbar appears correctly after I resize the main widget even with 1 px.

        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