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

QGLView can't be used on container widgets anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0
    • 5.0.0 Beta 1
    • Qt3D
    • Qt3D-1.0 for Qt 4.8.1 MSVC Release
      --> QGlView was usable on top of container widget

      qt-windows-opensource-5.0.0-beta1-x86-offline
      --> QGlView is not usable on top of container widget anymore
    • 64134181db034055dbcd7dfacff087abdb29d591

    Description

      Because QGLView inherits QWindow now (and not QGLWidget as it does before) it can't be used on QDockWidget, QTabWidget, QStackedWidget or any other container widget anymore. (QDockWidget::setWidget() expects a QWidget as parameter). So one possible solution might be to give the container classes overloaded methods to accept QWindow derived classes, e.g.
      QDockWidget::setWidget/setWindow(QWindow * window);
      QTabWidget::addTab(QWindow * page, const QString & label);
      etc.

      That might be the same problem as described in
      https://bugreports.qt-project.org/browse/QTBUG-25643
      but QGLView isn't explicitly mentioned there.

      Attachments

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              ibdm Donald Marotzke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes