← Back to team overview

yade-users team mailing list archive

Re: [Question #691593]: avoid this message : "The constructor with a shareWidget is deprecated, use the regular contructor instead."

 

Question #691593 on Yade changed:
https://answers.launchpad.net/yade/+question/691593

    Status: Open => Solved

Luc OGER confirmed that the question is solved:
Dear Jérôme

thanks for the hint where to find the 'solution': it is effectively
inside the libQGLviewer 2.7.0 to 2.7.2 library, especially inside the
qglviewer.cpp:

#ifndef DOXYGEN
/*! These contructors are deprecated since version 2.7.0, since they are not
 * supported by QOpenGlWidget */

/*! Constructor. See \c QGLWidget documentation for details.

All viewer parameters (display flags, scene parameters, associated objects...)
are set to their default values. See the associated documentation.

If the \p shareWidget parameter points to a valid \c QGLWidget, the QGLViewer
will share the OpenGL context with \p shareWidget (see isSharing()). */
QGLViewer::QGLViewer(QWidget *parent, const QGLWidget *shareWidget,
                     Qt::WindowFlags flags)
    : QOpenGLWidget(parent, flags) {
  Q_UNUSED(shareWidget)
  qWarning("The constructor with a shareWidget is deprecated, use the regular "
           "contructor instead.");
  defaultConstructor();
}

now I will try to find a solution....

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.