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

Sometimes QGraphicsLinearLayout doesn't respect content margins.

    XMLWordPrintable

Details

    Description

      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 ).

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes