Solved how to call a library used QObject::connect from a non qt base application ?
-
hi,
as far as i know, if i want to use signals and slots, I must have an qApp instance right?
so does this means i can not use a library used qt's signals and slots from other non qt application? -
If you want to use Qt functionality you need a running Q(Core|Gui)Application
-
@Christian-Ehrlicher
then how does qt for android work? -
@Mozzie said in how to call a library used QObject::connect from a non qt base application ?:
then how does qt for android work?
Exactly like on other OSes - a QApplication event loop is running.
-
so how to running QApplication event loop from other application as a library?
-
You could create a separate thread where you start the QApplication but then all gui operations have to be done there. I would say - leave it.