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. Unwanted empty space in expanded QTreeView items.
Forum Updated to NodeBB v4.3 + New Features

Unwanted empty space in expanded QTreeView items.

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

    Hi, i'm having some issues with unwanted space at the bottom of expanded items in a QTreeView. No matter the size of the window, expanding an item makes it fill the full height, meaning i have to scroll past some emtpy space to get to the next expandable item. Does anyone have any idea what might be causing this? All items are QStandardItems.
    This is PySide2/Qt5.
    Ui file (from Qt Designer): https://pastebin.com/EwGtHCJv

    qt_1.png

    qt_2.png

    qt_3.png

    Christian EhrlicherC 1 Reply Last reply
    0
    • E EClaesson

      Hi, i'm having some issues with unwanted space at the bottom of expanded items in a QTreeView. No matter the size of the window, expanding an item makes it fill the full height, meaning i have to scroll past some emtpy space to get to the next expandable item. Does anyone have any idea what might be causing this? All items are QStandardItems.
      This is PySide2/Qt5.
      Ui file (from Qt Designer): https://pastebin.com/EwGtHCJv

      qt_1.png

      qt_2.png

      qt_3.png

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Please provide a minimal, compilable example - normally QTreeView does not show this behavior.
      Also remove all stylesheets and other stuff from the treeview to see if this triggers this strange behavior.

      What exact Qt version do you use?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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