When I create a Qt3DWindow in a thread department, convert it to QWidget and add it to the main one, two windows are displayed. If I do all this in one thread, then one is displayed (QWidget is built in as it should)

auto view = new Qt3DExtras::Qt3DWindow(); QWidget* container = QWidget::createWindowContainer(view); 
  • 2
    working with guineas is possible only from the main stream. - Fat-Zer

1 answer 1

As written in the documentation , everything related to the graphical interface should work only in the main thread. All widgets, as well as some other related classes (like QPixmap ) will not work in other threads.