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. Unexpected padding added to bottom of window when moving element at runtime
Forum Updated to NodeBB v4.3 + New Features

Unexpected padding added to bottom of window when moving element at runtime

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

    I am dynamically adding and removing "Player" rows. Adding a row dynamically increases the height of the window. (It doesn't add enough bottom padding, but that can be fixed programmatically.)

    When removing a player row, it doesn't decrease the height, but based on a line of code I added in the function for removing a player, it'll decrease the window height:

    this->window()->resize(QSize(437, 1));
    

    (I think this decreases the height to its lowest possible amount.) However, there is still some height it adds, and I don't know where it's coming from. In the images, you can see it adds padding on the bottom when decreasing. (This padding is there when I go from 2 players to 9 players to 2 players.)

    Where is this padding coming from? How do I remove it?

    Also, I know the UI is weird. I have other improvements to the project to work on first.



    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