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

QX11EmbedWidget intermittently fails to lay out correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.5.3, 4.8.0
    • GUI: Window management
    • None
    • Redhat Linux kernel 2.6.32.10

    Description

      QX11EmbedWidget intermittently fails to lay out correctly. The expected behavior is that one process creates a QX11EmbedContainer and passes its window ID to another process, which creates a QX11EmbedWidget and calls embedInto() with the window ID. What should then happen is that the QX11EmbedWidget becomes parented under the QX11EmbedContainer and gets laid out (e.g., resized) accordingly. What happens in practice is that some times, the QX11EmbedWidget keeps its default size and does not get resized appropriately. Timing seems to matter, as running a test case in the debugger and single stepping through the relevant code makes the problem go away. A good way to see the problem occur (outside the debugger) is to use a shell script loop to run the executable in the background multiple times (e.g., 20 times); although some of these executables will not show the problem, some will.

      Attachments

        1. main.cpp
          4 kB
          Philip Hubbard
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            hubbard Philip Hubbard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes