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

2020-07-03 Thread Jérôme Duriez
Question #691593 on Yade changed:
https://answers.launchpad.net/yade/+question/691593

Jérôme Duriez posted a new comment:
Thanks for sharing Luc, maybe it would help for possible future
integration of this to (one choice to pick, increasing complexity)

- send the output of a (git) diff to yade-...@lists.launchpad.net

- join YADE development on GitLab, see https://yade-
dem.org/doc/gitrepo.html to start with (you probably also need to send
an email asking to join the yade-dev gitlab team with your gitlab
account)

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

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


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

2020-07-01 Thread Luc OGER
Question #691593 on Yade changed:
https://answers.launchpad.net/yade/+question/691593

Luc OGER posted a new comment:
here my modification which avoid the warning and still generates a
graphical view :


GLViewer.cpp
line 64-65:

GLViewer::GLViewer(int _viewId, const shared_ptr& _renderer, 
QOpenGLWidget* parent)
: QGLViewer(/*parent*/ (QWidget*) parent)

GLViewer.hpp
line 92:
GLViewer(int viewId, const shared_ptr& renderer, 
QOpenGLWidget* Widget = 0);

OpenGLManager.cpp
line 56:

views.push_back(shared_ptr(boost::make_shared(0, renderer, 
/*QopenGLWidget*/ (QOpenGLWidget*)0)));

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

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


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

2020-07-01 Thread Luc OGER
Question #691593 on Yade changed:
https://answers.launchpad.net/yade/+question/691593

Luc OGER posted a new comment:
just some complementary inormation:
"After Qt 5.3's introduction of QQuickWidget, Qt 5.4 adds QOpenGLWidget, the 
long-awaited replacement for the legacy QGLWidget" from 
https://www.qt.io/blog/2014/09/10/qt-weekly-19-qopenglwidget

so I will try to modify /gui/qt5/GLViewer.cpp according to the new
specification by eliminating the shareWidget

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

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


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

2020-06-30 Thread Luc OGER
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.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


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

2020-06-29 Thread Jérôme Duriez
Question #691593 on Yade changed:
https://answers.launchpad.net/yade/+question/691593

Jérôme Duriez posted a new comment:
Hi,

I guess it comes from graphical-display-related files like this one [*],
which should be updated to account for a new behaviour of some third
party library. At least, that message does not come directly from YADE
[**]

[*]
https://gitlab.com/yade-dev/trunk/-/blob/master/gui/qt5/GLViewer.cpp

[**]
mkdir Test
cd Test
git clone https://gitlab.com/yade-dev/trunk.git
cd trunk
grep -r 'The constructor with a shareWidget is deprecated, use the regular 
contructor instead.' # returns nothing

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

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


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

2020-06-29 Thread Luc OGER
New question #691593 on Yade:
https://answers.launchpad.net/yade/+question/691593

Dear sir,

It i not a crucial point... but I want to avoid having this warning message at 
each run of a yade script:"The constructor with a shareWidget is deprecated, 
use the regular contructor instead."
I am using the latest compiled version of yade from june : 
2020-06-23.git-f03a37c on  Opensuse 15.1

how and where to modifiy things to do it?

Luc 

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

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp