From: Roland Goecke <roland.goecke@an...> - 2006-01-12 00:35:02
I tried to figure out what the problem is and I've come to the following
conclusions. The VGUI + Qt examples are based on Qt3 functions. There's
been quite a change from Qt3 to Qt4 and as Trolltech points out, Qt4 is
not backward compatible with Qt3. Therefore, one would need an updated
version of the VGUI + Qt examples to work with any of the Qt4 versions.
For example, the VGUI + Qt examples use qpopupmenu which does not exist
in Qt4 anymore. Qt4 offers support for Qt3 code by offering functions
such as q3popupmenu but an initial quick test to see if updating the
example code to reflect these changes did not result in a correct
If anyone else has made the same experience or had an updated version of
the VGUI + Qt examples to work with Qt4, I'd appreciate to hear from you.
I haven't had time yet to look into it more deeply. My initial guess was
that the code provided in the VXL distribution needed to be changed in
such a way that it uses the Qt3Support classes that Qt4 ships with to
compile the examples.
For example, when I tried to compile the VGUI examples with Qt4 support,
it complained about qpopupmenu missing. That one doesn't exist anymore
in Qt4 but is still supported through the Qt3Support classes, so one
would have to change it to q3popupmenu etc. Have a look into the
Qt\4.1.0\include\Qt3Support directory of your Qt distribution and you
will find the missing files there.
I'll try to find the time to have a go at this but can't guarantee
anything. If you are successful, please let me know.
On Wed 11 Jan 2006, Roland Goecke wrote:
> If anyone else has made the same experience or had an updated version of
> the VGUI + Qt examples to work with Qt4, I'd appreciate to hear from
I'm afraid I don't know of anyone using the vgui_qt, though I hope
someone responds to your query.
If you do want to contribute a vgui_qt4 library, that would be very