Is it possible to use Qt with a C application ?
Thanks!
Is it possible to use Qt with a C application ?
Thanks!
Not for a "pure" C app.
So it depends on how you define a "C application". If you provide a C interface (i.e. use extern "C") that the Qt/C++ stuff can hide behind, then, yes, you can.
(So you need C++ to use Qt, but you can often provide a C interface to your C++ code using Qt.)
But you can use C with a Qt application.
HTH
I provide a Qt interface and a "pure" C code !!!
So ?
thanks
You can't.
You need to use C++ code to program with Qt.
You can (again in C++!) provide a C api to your gui code.
Then call this C api from the rest of your app.
Last edited by caduel; 23rd February 2009 at 17:38.
thanks again![]()
Bookmarks