Results 1 to 1 of 1

Thread: StereoView Element not a Type?

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default StereoView Element not a Type?

    Hi all together,

    i am trying to program some 3D output applications for my 3D screen and i am facing some problems.
    I have a simple QML Application and want to use a StereoView Element. The program compiles fine, but when i start it i get the error: "StereoView is not a type"
    I am using Qt4.8 built from the new SDK and having QtQuick3D built in.

    The Source Code in the qml is:
    Qt Code:
    1. import QtQuick 1.1
    2. import Qt 4.7
    3. import Qt3D 1.0
    4. import Qt3D.Shapes 1.0
    5.  
    6. StereoView{
    7. id: stereo
    8. width: 640; height: 450
    9.  
    10. Rectangle{
    11. id:rect1
    12. anchors.fill: parent
    13.  
    14. }
    15.  
    16.  
    17. }
    To copy to clipboard, switch view to plain text mode 

    the main code is:
    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include "qmlapplicationviewer.h"
    3. #include <QGLFormat>
    4. #include <qdeclarativeview3d.h>
    5.  
    6. Q_DECL_EXPORT int main(int argc, char *argv[])
    7. {
    8. QScopedPointer<QApplication> app(createApplication(argc, argv));
    9.  
    10. QDeclarativeView3D viewer;
    11.  
    12. QGLFormat fmt;
    13. fmt.setAlpha(true);
    14. fmt.setStereo(true);
    15. fmt.setDepth(true);
    16. fmt.setBlueBufferSize(100);
    17. fmt.setOption(QGL::StereoBuffers);
    18.  
    19. QGLFormat::setDefaultFormat(fmt);
    20.  
    21. viewer.setSource(QUrl("qrc:/stereo.qml"));
    22.  
    23. viewer.showFullScreen();
    24. return app->exec();
    25. }
    To copy to clipboard, switch view to plain text mode 


    can anyone help me with that issue?
    best
    Andy
    Last edited by The_Schrek; 16th February 2012 at 18:44.

Similar Threads

  1. Get element in Qgridlayout
    By dieter in forum Newbie
    Replies: 1
    Last Post: 12th February 2012, 09:51
  2. Replies: 7
    Last Post: 19th April 2011, 12:20
  3. Remove element of xml
    By VitaliBR in forum Newbie
    Replies: 17
    Last Post: 16th February 2011, 13:28
  4. Help with QML Pathview element
    By chetu1984 in forum Newbie
    Replies: 0
    Last Post: 7th February 2011, 04:49
  5. Replies: 2
    Last Post: 22nd December 2009, 20:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.