<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Mathieu,<br>
    <br>
    thanks for your support for OSG/Qt integration. I think there are
    really many people using OSG together with Qt.<br>
    Qt is just great for building multi environment user interfaces.<br>
    But there is one thing I don't really understand. There is some
    discussion sometimes about difficulties in this integration.<br>
    My integration is dated April 2013 and I didn't need any changes
    since then.<br>
    <br>
    <span style=" color:#808000;">class</span><span style="
      color:#c0c0c0;"> </span><span style=" color:#800080;">Cl_3D_OsgViewer_QT</span><span
      style=" color:#c0c0c0;"> </span>:<span style=" color:#c0c0c0;"> </span><span
      style=" color:#808000;">public</span><span style=" color:#c0c0c0;">
    </span><span style=" color:#800080;">QWidget</span>,<span style="
      color:#c0c0c0;"> </span><span style=" color:#808000;">public</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osgViewer</span>::<span
      style=" color:#800080;">Viewer</span><span style=" color:#c0c0c0;">
    </span>{...
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    It works without any problems with every version of Qt since that
    time.<br>
    So where is the problem?<br>
    <br>
    OK, I'm not using VS 20xx but Qt Creator and g++ instead. Maybe that
    makes the difference. But in this case <br>
    it isn't really a problem of Qt integration but a VS problem.<br>
    I see that some people tend integrating OSG into QOpenGLWindow.  In
    my opinion this is a stony way <br>
    because Qt GL wasn't that stable and finally decided since many
    years now. So things change frequently <br>
    and this is always causing headache for keeping integrations
    running.<br>
    <br>
    On the other hand I think there is nothing more developed and stable
    than QWidget. <br>
    If someone needs help send me a PM and I'm willing to share my
    integration class.<br>
    <br>
    - Werner -<br>
    <br>
    <div class="moz-cite-prefix">Am 10.09.2018 um 18:42 schrieb Mathieu
      MARACHE:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEJXSkrf1oh2Ux9JvTFvE9EGidHzo93o628QCxGgS8JccbSrvA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div>Back from holidays...</div>
            <div><br>
            </div>
            <div>Community support is thin when considering
              OpenSceneGraph with Qt. I am currenlty the only maintainer
              of osgQt because I have a software using it and I didn't
              want the project to be tossed out. <br>
            </div>
            <div><br>
            </div>
            <div>The Qt4 way of doing things with legacy osgQt (that was
              droped from OpenSceneGraph) doesn't fit well with the Qt5
              way of doing things. Since Qt5.7 there are even
              incompatibilities (black screens, etc.).</div>
            <div><br>
            </div>
            <div>Qt4 support is getting difficult, even debian is
              dropping Qt4 (<a href="https://wiki.debian.org/Qt4Removal"
                moz-do-not-send="true">https://wiki.debian.org/Qt4Removal</a>).</div>
            <div><br>
            </div>
            <div>In anticipation I have proposed to drop Qt4 and
              concentrate only on Qt5. Robert only asked to keep the Qt4
              version around and make it clear which version of osg
              compiles with which version/branch of osgQt.</div>
            <div><br>
            </div>
            <div>There is a feature branch (since Feb '18) of the Qt5
              way of doing things awaiting testing and validation from
              the community. This is the code I use in my application
              which was crafted by paid support from KDab's Mike Krus
              (from which I had authorization to open source).<br>
            </div>
            <div><br>
            </div>
            <div><a
                href="https://github.com/openscenegraph/osgQt/tree/feature/osgQOpenGL"
                moz-do-not-send="true">https://github.com/openscenegraph/osgQt/tree/feature/osgQOpenGL</a></div>
            <div><br>
            </div>
            <div>Regards<br>
            </div>
            <div>
              <div>
                <div dir="ltr" class="gmail_signature">
                  <div dir="ltr">--<br>
                    nǝıɥʇɐ<span
                      style="color:rgb(51,51,51);font-family:"Open
                      Sans","Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;background-color:rgb(249,249,249)">Ɯ</span></div>
                </div>
              </div>
              <br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Mon, 30 Jul 2018 at 17:07, Robert Osfield
            <<a href="mailto:robert.osfield@gmail.com"
              moz-do-not-send="true">robert.osfield@gmail.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 30
            Jul 2018 at 15:59, Andrew Cunningham <<a
              href="mailto:andrewC@mac.com" target="_blank"
              moz-do-not-send="true">andrewC@mac.com</a>> wrote:<br>
            ><br>
            > Back on the original topic :)<br>
            ><br>
            > This is a really simple QtOSGWidget that I used as a
            starting point for an OSG widget in a QDialog. Simple and
            works fine.<br>
            ><br>
            > <a href="https://github.com/vicrucann/QtOSG-hello"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/vicrucann/QtOSG-hello</a><br>
            <br>
            Just had a quick look at the code.  It only works "fine"
            because there<br>
            it's a trivial example, it's buggy.  Please compare to the
            the<br>
            osg::Camera setup in the osgQt master and see if you can see
            the<br>
            error, in this example.  If you can then you'll be able to
            spot what<br>
            to fix in your own programs.<br>
            <br>
            Robert.<br>
            _______________________________________________<br>
            osg-users mailing list<br>
            <a href="mailto:osg-users@lists.openscenegraph.org"
              target="_blank" moz-do-not-send="true">osg-users@lists.openscenegraph.org</a><br>
            <a
href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>