Update on Qt Quick 3D for Qt 4.x
July 27, 2011 by Minjung Shin | Comments
Note: This is a solution for those who want to use Qt Quick 3D against Qt 4.x. We won't need this once we port Qt Quick 3D to Qt 5 where scene graph based QSGView is used.
When the first preview of Qt Quick 3D was released, it was not possible to run QML 3D on Symbian devices. We now have fixed this issue by creating a specialized declarative view class. This new class is called QDeclarativeView3D and used when creating Qt3D applications. It replaces the standard raster viewport with an OpenGL capable viewport suitable for rendering 3D content. I.e. It gives the same effect as calling qmlviewer -opengl.
As this is a new class, it causes a minor problem if you want to create a default project in the current Qt Creator(2.2.x) which generate a qml application viewer based on QDelarativeView. However it is simple enough to fix by modifying a few lines of auto-generated code. For example:
Your project > qmlapplicationviewer > Headers > qmlapplicationviewer.h
...#include <QtQuick3D/qdeclarativeview.3d.h>
class QmlApplicationViewer: public QDeclarativeView3D
...
Your project > qmlapplicationviewer > Sources > qmlapplicationviewer.cpp
...QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
: QDeclarativeView3D(parent)...
Also, you will need to add qt3dquick in addition to qt3d to the CONFIG line in the .pro file.
Qt Quick 3D library and examples for Symbian devices are found here. The certificate issue that we previously had is also solved.
- Source repository
- Documentation
- Requirements and bug tracking dashboard - login required
Blog Topics:
Comments
Subscribe to our newsletter
Subscribe Newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
We're Hiring
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu