Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23090

Documentation on C++ launcher wrappers needed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 5.7.0
    • Qt3D TP2
    • Qt3D
    • 4

    Description

      Currently to achieve anti-aliasing or other types of GL format specific effects, you need to specifically create these in the C++ wrapper which launches the QML app. But there is no documentation on how to do this.

      From Kristen Eisenberg <kristen.eisenberg@yahoo.com>

      1) Set DeclarativeView with OpenGL viewPort + QGLFormat (with options)

      QDeclarativeView *view = new QDeclarativeView();
      
      QGLFormat fmt = QGLFormat::defaultFormat();
      fmt.setDoubleBuffer(true);
      fmt.setDirectRendering(true);
      fmt.setSampleBuffers(true);
      QGLWidget *glWidget = new QGLWidget(fmt);
      
      view->setViewport(_glWidget);
      view->setSource(file.qml);
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sergey.dubitskiy Sergey (closed Nokia identity) (Inactive)
            sarasmit Sarah Smith (closed Nokia identity) (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes