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. Troubles with layoutSpacing in a very simple VBoxLayout
Forum Updated to NodeBB v4.3 + New Features

Troubles with layoutSpacing in a very simple VBoxLayout

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 435 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.
  • J Offline
    J Offline
    johnw3d
    wrote on last edited by
    #1

    Just moving from Qt4 to Qt5 and trying a simple Qt Designer dialog, having trouble with layoutSpacing. See first image below - 3 buttons in a VBoxLayout pushed up by a Vertical Spacer with everything default, including layoutSpacing in the containing vbox set to -1. Top half of image 1 shows Designer view, bottom half shows the open dialog in a minimal app. Close, but the inherited spacing is not right in the app.

    The second image has layoutSpacing changed to 3. Again, it's right in the Designer view but wildly wrong in the app.

    I've tried all kinds of things, setting fixed sizes, sizeHints, different constraint policies, always get this odd squashing.

    Any suggestions? Thanks - John.

    Image 1:
    alt text

    Image 2:
    alt text

    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