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

Height for Width in QGraphicsLayout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.2
    • 4.7.1
    • Widgets: Layout
    • None
    • 62b5ef3cc1306e46a4042b14867f2f92d9a110f3, 30b82b9440fcfc4a703d1a2b1150efd6b4147093, 6d4d265e7e67dde58e45d7d89f4974d0bd8b70e4, fb0765f5285b8518b3336a6aa36de1adc37bc1fc, 659c889f64e76ec9aece2dd9e24a7f65875c46ad

      In QGraphicsLayout, the whole height-for-width stuff seems to be broken.

      The attached program creates a SquareWidget whose sizehint tries to make it a
      square. Then this is added a layout.

      By passing in the width as the constraint, the square gives the correct
      sizehint:

      Preferred size of square of width 100 is QSizeF(100, 100)

      But passing in the width as the constraint to the layout gives the wrong
      sizehint:

      Preferred size of layout of width 100 containing a square is QSizeF(100, 20)

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

            smd Jan Arve
            carolinagomes Carolina Simões Gomes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes