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