Hi all,

I'm writing a QtQuickApplication, in which there should be a box showing a 3D model made in 3ds.
I took a QML project online that does this job, using a .qml file with this simple piece of code:

Qt Code:
  1. import QtQuick 1.0
  2. import Qt3D 1.0
  3. import Qt3D.Shapes 1.0
  4.  
  5. Viewport {
  6. Mesh {
  7. id: cube
  8. source: "cube.3ds"
  9. }
  10.  
  11. Item3D {
  12. mesh: cube
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

I run this qml project, and everything works fine.

I decide then to import this "sample.qml" file inside my Desktop application, as explained in http://doc.qt.nokia.com/4.7/qml-inte...objects-in-qml. To do so, I promote a QGraphicsView to a QDeclarativeView3D, and in the main cpp file I write:

Qt Code:
  1. ui->graphicsView->setSource(QUrl::fromLocalFile("sample.qml"));
  2. ui->graphicsView->show();
To copy to clipboard, switch view to plain text mode 

where ui->graphicsView is obviously the QDeclarativeView3D widget.

Now, there's the problem: I run the application, but the QDeclarativeView3D remains always black, even "mousing" over it.


Any suggestion will be appreciated!

Thanks in advance,
Bobbz