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

QWidget::createWindowContainer child does not follow parent position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.4, 6.6
    • 6.5.3
    • Widgets: Main Window
    • None
    • chrome / firefox
    • WebAssembly
    • d90692ce9 (tqtc/lts-6.5)

    Description

      Using the linked application, you should see:

       

      The app is nicely placed on the browser. The MainWindow bars are at the correct place. The QQuickView inside fills the inside. Everything is fine

      Using the linked sidebyside.html instead, we have this behavior:

      The QMainWindow still follows correctly the "screen" html node. But the QQuickView instead does not.

      We actually see on the devtool that it managed to calculate itself the offset:

      The natural approach would be to fit the QMainWindow content, so having left: 0;

       

      Maybe related to: https://bugreports.qt.io/browse/QTBUG-115054

      Attachments

        1. CMakeLists.txt
          1.0 kB
        2. image-2023-10-06-17-07-44-995.png
          image-2023-10-06-17-07-44-995.png
          18 kB
        3. image-2023-10-06-17-10-06-395.png
          image-2023-10-06-17-10-06-395.png
          15 kB
        4. image-2023-10-06-17-12-41-389.png
          image-2023-10-06-17-12-41-389.png
          43 kB
        5. main.cpp
          0.5 kB
        6. Main.qml
          0.1 kB
        7. mainwindow.cpp
          0.4 kB
        8. mainwindow.h
          0.3 kB
        9. mainwindow.ui
          0.9 kB
        10. sidebyside.html
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            piwierci Piotr Wierciński
            qtdel Quentin Deldycke
            Morten Sørvig Morten Sørvig
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes