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

Making child widget native causes TLW to cover whole screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • None
    • a957ed9

      Given a widget hierarchy like this:

      TLW
      |
      +--Child
      

      calling winId() on the child before the TLW is shown causes the TLW to be resized to cover the whole screen.

      Environment

      Qt: Built from source, qt-s60-public/4.7 commit 700ba679
      Device: N8, wk26 RnD image

      Steps to reproduce

      This can be reproduced using the attached test app videooverlay_QTBUG-12605_1.zip.

      The attached logs were created in the above environment using the following command line options:

      alien.log

      videooverlay.exe -video none -overlay childwidget
      

      native.log

      videooverlay.exe -video none -overlay nativechildwidget
      

      Expected behaviour

      Calling winId() on the child widget has no effect on the geometry of either the TLW or the child widget.

      Observed behaviour

      Calling winId() on the child widget causes the TLW to be resized to cover the whole screen (360x640).

        1. videooverlay_QTBUG-12605_1.zip
          20 kB
          Gareth Stockwell
        2. alien.log
          2 kB
          Gareth Stockwell
        3. native.log
          2 kB
          Gareth Stockwell
        4. QTBUG-12605.patch
          3 kB
          Gareth Stockwell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gastockw Gareth Stockwell
            gastockw Gareth Stockwell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes