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. Qt Designer layout bug
QtWS25 Last Chance

Qt Designer layout bug

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

    Can someone recreate this bug?

    Use a .ui file and create a usable layout in there with default content margins (for me it was 1 and the margins aren't written in bold) and put some widgets inside.
    The resulting dialog should look more or less exactly like the designer preview.

    But now morph that one layout into a widget .
    The preview should still look exactly the same as before, but when you build the program and open the dialog, then you suddenly have unexpected margins in your layout.

    When I change the margins in the Designer to something else (e.g. 2, the description is now bold), and then reset it with undo button next to the input field (description is not bold anymore), it will show 11, which is obviously not the 1 it was showing before.

    This means that the Designer is somehow previewing a wrong default value for the widget-embedded layout after you morphed it.

    I fixed the margin discrepancy of designer preview and actual program by setting them once to some random number and then back to 1, which will now have a bold description, because the new default would have been 11.

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

      Hi
      For me, after morphing the layout to the widget, the description was still bold and
      values worked as expected. (also after run )

      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