Hi,

createWindowContainer() has some minor issues on Android in Qt 5.9 and earlier, 
which unfortunately lead to not showing anything in the "embedded" window. The 
missing things have been added in the dev branch, so it should work in 5.10 
(although I have only tested QOpenGLWindow/QVulkanWindow, not Qt3DWindow)


Best regards,

Laszlo


________________________________
From: Interest <interest-bounces+laszlo.agocs=qt...@qt-project.org> on behalf 
of max_bergman...@web.de <max_bergman...@web.de>
Sent: Wednesday, June 14, 2017 11:41:51 AM
To: interest@qt-project.org
Subject: [Interest] Qt3D on Android with C++

Hi,

I'm currently facing a problem with Qt3D and widgets on Android. My C++ 
application got a Qt3DWindow in a WindowContainer, so I can use Widgets for 
controls in this window:

Qt3DExtras::Qt3DWindow *view = new Qt3DExtras::Qt3DWindow();
QWidget *container = QWidget::createWindowContainer(view);
QWidget *widget = new QWidget;
QHBoxLayout *hLayout = new QHBoxLayout(widget);
hLayout->addWidget(container, 1);

(from Basic shapes example)

This approach doesn't work on Android, only the widget with buttons is 
displayed but not the 3DWindow.
Is there a better way to add control elements to the window that works with 
Android?
If not, maybe I could use a Scene3D. I've got a QVector of entities (with 
components) I want to display there. How can I do this? I don't want to change 
the model, just the view.

Regards Max


_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to