Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QListview truncates row when scrollbar added
Qt 6.12 LTS is out! See what's new in the release blog

QListview truncates row when scrollbar added

Scheduled Pinned Locked Moved General and Desktop
qlistview trunc
2 Posts 2 Posters 1.1k Views 2 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I have a QListView with a single row. It gets some items put in it. They have pictures. When the number of items in the QListView is enough that they don't all fit, a scrollbar appears at the bottom of the QListView so the user can scroll to the right to see all the items. This is good.

    What is bad is that the scrollbar takes up space, and the items are truncated; the top and bottom of the picture is clipped. How do I stop is doing this? I am happy for the QListView to resize, or for the items to be shrunk. Just not clip the items.

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

      Hi,

      Can you reproduce this with a minimal compilable example ?

      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

      • Login

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