[Qt-interest] QtStateMachine Dependency on QtQui

Will Rutherdale (rutherw) rutherw at cisco.com
Wed Oct 28 16:12:47 CET 2009


Hi.

I attempted to bring QtStateMachine into some embedded code that uses
only QCoreApplication and doesn't touch gui classes.  The .pro file
contains the line
QT -= gui

It worked so far as I tested it in a Fedora environment.  However,
bringing it onto an embedded platform exposed a problem.

That embedded platform does not have the Gui part of Qt installed.  The
build broke, because linking with the QtStateMachine library brought in
a dependency on part of the QtGui module.  There is a (hidden?  Or maybe
I just missed it) dependency between QtStateMachine and QtGui.

Version details:  I am using Qt 4.5, with QtStateMachine downloaded in
source-code form from the Qt add-on products web site.  (I haven't
switched to Qt 4.6 at this point, which I know includes QtStateMachine
as a module.)

Does anyone know why this dependency exists and what can be done about
it?

-Will




More information about the Qt-interest-old mailing list