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

Widgified Qt3DExtras.Qt3DWindow() crashes if placed inside layout with other widgets that takes space.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.6.1
    • Qt3D
    • None
    • Windows

    Description

      UsingĀ 
      QWidget.createWindowContainer on Qt3DExtras.Qt3DWindow(), and placing it in a layout, along with other widgets that are willing to take space, causes the app to crash.

      In this example code, a horizontal box layout is used, the widgified Qt3DExtras.Qt3DWindow() is added first to the layout, then a sub-layout holding sliders is added, if the sliders in horizontal orientation, it will cause the app to crash, if they are in vertical orientation, the app works fine.

      To fix it, I have to manually set a minimum or fixed width for the widgified Qt3DExtras.Qt3DWindow() to force it to take space, making the app work find all the time.

      Attachments

        1. Monkey.mtl
          0.4 kB
        2. Monkey.obj
          62 kB
        3. pyside2578_win_stack.txt
          31 kB
        4. pyside2578.zip
          19 kB
        5. QMeshObjTest.py
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ahmedahmedeg Ahmed Ahmed Abd Al Maksoud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes