I need to write some linux specific system daemon(it will run with root privileges).
I have stereotype, that Qt is all about GUI applications, so daemon that depends on Qt looks strange to me.
On the other side, Qt has nice C++ bindings for DBUS/threads/settings/... - everything i need for my daemon.
Now I am interested, is it okay to write non GUI system tools/daemons with Qt? Are there examples of such tools?
is it okay to write non GUI system tools/daemons with Qt?
Yes, this is perfectly fine.
There is the QCoreApplication class for non UI applications.
Specific to daemons, you might want to check out Daemonizing a Qt-application.
Since Qt4, Qt library has been splitted in a number of modules.
You could use Qt Core without having even installed Qt Gui or any other graphical thing.
I can think of a fiew command line only examples that use Qt (like qdbus
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With