Dear all,as requested, here the three changes made to avoid the warning about sharewidget coming from libqglViewer from 2.7.1 and Qt higher than 5.3
Sinceelry yours Luc OGERPs hint on https://www.qt.io/blog/2014/09/10/qt-weekly-19-qopenglwidget given from libqglviewer group
-------- Message transféré --------Sujet : Re: [Question #691593]: avoid this message : "The constructor with a shareWidget is deprecated, use the regular contructor instead."
Date : Fri, 03 Jul 2020 12:11:00 -0000 De : Jérôme Duriez <question691...@answers.launchpad.net> Répondre à : question691...@answers.launchpad.net Pour : luc.o...@univ-rennes1.fr Your 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-dev@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 you asked the question. -- Luc OGER Directeur de Recherche CNRS univ-rennes1 <https://www.univ-rennes1.fr/> *Institut de Physique de Rennes <https://www.ipr.univ-rennes1.fr/>* (UMR U.Rennes1-CNRS 6251) Département Milieux Divisés Page perso <https://perso.univ-rennes1.fr/luc.oger>** Bâtiment 11A, Campus de Beaulieu CS 74205, 263 Ave. du Général Leclerc 35042 Rennes CEDEX +33 (0)2 23 23 56 58 <https://twitter.com/UnivRennes1> <https://fr-fr.facebook.com/UnivRennes1> www.univ-rennes1.fr <https://www.univ-rennes1.fr>
diff --git a/./gui/qt5/OpenGLManager.cpp b/../trunk_modifie/gui/qt5/OpenGLManager.cpp index d88002a71..928c6c747 100644 --- a/./gui/qt5/OpenGLManager.cpp +++ b/../trunk_modifie/gui/qt5/OpenGLManager.cpp @@ -53,7 +53,7 @@ void OpenGLManager::createViewSlot() { const std::lock_guard<std::mutex> lock(viewsMutex); if (views.size() == 0) { - views.push_back(shared_ptr<GLViewer>(boost::make_shared<GLViewer>(0, renderer, /*shareWidget*/ (QGLWidget*)0))); + views.push_back(shared_ptr<GLViewer>(boost::make_shared<GLViewer>(0, renderer, /*QopenGLWidget*/ (QOpenGLWidget*)0))); } else { throw runtime_error("Secondary views not supported"); //views.push_back(shared_ptr<GLViewer>(new GLViewer(views.size(),renderer,views[0].get()))); diff --git a/./gui/qt5/GLViewer.cpp b/../trunk_modifie/gui/qt5/GLViewer.cpp index 8b12514c6..5f598df4a 100644 --- a/./gui/qt5/GLViewer.cpp +++ b/../trunk_modifie/gui/qt5/GLViewer.cpp @@ -61,8 +61,8 @@ void GLViewer::staticCloseEvent(QCloseEvent* e, const int viewId) void GLViewer::closeEvent(QCloseEvent* e) { GLViewer::staticCloseEvent(e, viewId); } -GLViewer::GLViewer(int _viewId, const shared_ptr<OpenGLRenderer>& _renderer, QGLWidget* shareWidget) - : QGLViewer(/*parent*/ (QWidget*)NULL, shareWidget) +GLViewer::GLViewer(int _viewId, const shared_ptr<OpenGLRenderer>& _renderer, QOpenGLWidget* parent) + : QGLViewer(/*parent*/ (QWidget*) parent) , renderer(_renderer) , viewId(_viewId) { diff --git a/./gui/qt5/GLViewer.hpp b/../trunk_modifie/gui/qt5/GLViewer.hpp index d576bf724..391b73d8b 100644 --- a/./gui/qt5/GLViewer.hpp +++ b/../trunk_modifie/gui/qt5/GLViewer.hpp @@ -88,7 +88,7 @@ public: int timeDispMask; enum { TIME_REAL = 1, TIME_VIRT = 2, TIME_ITER = 4 }; - GLViewer(int viewId, const shared_ptr<OpenGLRenderer>& renderer, QGLWidget* shareWidget = 0); + GLViewer(int viewId, const shared_ptr<OpenGLRenderer>& renderer, QOpenGLWidget* Widget = 0); virtual ~GLViewer(); #if 0 virtual void paintGL();
smime.p7s
Description: Signature cryptographique S/MIME
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp