info-inventor-dev
[Top] [All Lists]

Open Inventor with QT

To: info-inventor-dev@xxxxxxxxxxx
Subject: Open Inventor with QT
From: Mr D P Williams <esuvs@xxxxxxxxxxxxxxxxx>
Date: Sun, 11 Feb 2001 22:12:42 +0000
Organization: University of Warwick
Sender: owner-info-inventor-dev@xxxxxxxxxxx
Hi,
    Thanks for the help getting Open Inventor to compile, I got passed
that stage. I now have another problem. I followed a tutorial
(www.dev-gallery.com) on using Open inventor with Glut, and got it to
work. But now how do I port it to QT? I have set up a QGLWidget  which
works, but the trouble seem to be in the call to the setRenderCallback()
function. In the glut example the code is:

    scenemanager->setRenderCallback(redraw, NULL);

and the declaration for redraw is:

    void redraw(void * user, SoSceneManager * manager) ;

even though the variables 'user' and 'manager' are not used in the
function. I basicly cut and pasted the code around and changed the call
to:

    scenemanager->setRenderCallback(paintGL, NULL);

The compiler now fails to find an appropriate function.

I have heard somewhere about a SoQT class which I do not have. Do I need
it? where do I get it? Any advice on the above matters would be greatly
appriciated.

Thanks in advance,

        David


<Prev in Thread] Current Thread [Next in Thread>