[Qt-interest] C code in QT use queue in Class

Pavel Koshevoy pavel at aragog.com
Tue Aug 4 17:08:29 CEST 2009


You should be able to use any C code with C++ (nothing to do with Qt 
really).  If you can't include a particular C header for some strange 
reason you can write a thin wrapper as a workarond.  Shouldn't be a 
problem to any competent software engineer.

For a less vague answer please post some concrete questions with 
relevant code attached.

    Pavel.

Mic J wrote:
> Hi
>
> Im trying to use a decoder made in C inside QT code
> where the data is displayed via Opengl in A QT Widget window.
>
> Problem is i include a C file that has structures / data types
> defined  but also global variables in the same header files.
> These global variables are not declared extern.
>
> I want to wrap  the data loaded by the decoder into a class.
> (the types in the list)
>
> The data are loaded into a queue (TAILQ system queue) by the decoder.
>
> I want to obtain the data inside the class (C++)
> And be able to manipulate it traverse it etc.
>
> Is there a way to do it without chagning the decoder.?
>
> Mic
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   




More information about the Qt-interest-old mailing list