|Re: [hatari-devel] Hatari UI with Qt?|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Le 26/11/2012 10:07, Eero Tamminen a écrit :
On maanantai 26 marraskuu 2012, Didier Plaza wrote:
Maybe i'm wrong, but i think it's better to keep hatari as an engine and
don't introduce UI dependency into it.
The base Hatari of course wouldn't have dependency to Qt (just SDL),
but Hatari as whole, including the Qt GUI, (of course) would.
Some CMake option would need to be introduced to state whether
Hatari is built with Qt UI. That would affect for example to
where its main() function is.
Is it necessary to use QT's main() function ? Some toolkits provide
wrapper functions to their internal C++ main(), so that you can call it
from your existing C main() function.
So, there's only one main() function (in our case in main.c) and it
would for example call qt_main() (but I don't know if QT provides such