Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34731

QFormLayout ASSERTs when verticalSpacing is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.1
    • 5.2.0 Beta1
    • Widgets: Layout
    • None
    • Linux/X11, style used is KDE's Oxygen
    • de5b3780cf57154c0ae3bc59e125c12904856ae4

    Description

      Using QFormLayout, we run into reproducible crashes with Form layouts.

      A workaround is to add the verticalSpacing property to the Formlayout. With default settings of QFormlayout, it ASSERTs:

      Designer(16229)/default qt_assert: ASSERT: "uniformSpacer >= 0 || spacing >= 0" in file ../../include/QtWidgets/5.2.0/QtWidgets/private/../../../../../src/widgets/kernel/qlayoutengine_p.h, line 78

      Adding the following to the ui file makes the formlayout work as expected:

      <property name="verticalSpacing">
      <number>0</number>
      </property>

      Attached files:

      • good example (doesn't crash, works)
      • bad example (crashes when opening in designer)
      • backtrace

      This is using master built on Friday.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            smd Jan Arve
            sebas Sebastian Kügler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes