@timob256
Cross-referenced from your other thread at https://forum.qt.io/topic/132655/how-to-embed-ogre3d-in-qt5-as-a-widget.
A QWindow is not derived from a QWidget, so, no, you cannot put a QLayout on it. Docs say:
The QWindow class represents a window in the underlying windowing system.
So you do not set extra buttons or charts or whatever on a QWindow.
You may know better than I, and I don't know how it relates to your "Ogre" situation, but you may want to read through What is the difference between a QWindow and QWidget and maybe Introducing QWidget::createWindowContainer() too. Qt: layouts with a Qwidget window container talks about layouts too.