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

Sometimes QGraphicsLinearLayout doesn't respect content margins.

XMLWordPrintable

      Attached is a simple program with a QLineEdit inside a QGraphicsWidget, managed by a QGraphicsLinearLayout.

      Almost every time I run the program, the child widget ( QLineEdit ) is placed at (4,4), because the top and left content margins are 4px.

      But sometimes it's placed at (0,0). The bug is easier to reproduce on high system load ( ex: compiling ).

        1. bug.png
          0.7 kB
          Sergio Martins
        2. expected.png
          0.6 kB
          Sergio Martins
        3. main.cpp
          1 kB
          Sergio Martins
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            frederik Frederik Gladhorn
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes