Topic: The cycle of messages in a separate flow
Good evening! So it turned out that it is necessary to work at once with two libraries One of them - "locking", that is operation of functions is fulfilled in the same flow, occupies the durable time and consequently the code needs to be allocated in a separate flow. Plus is still some reasons to allocate the code in a separate flow. The second is calculated for operation in a surrounding of a cycle of messages Qt. That is if is qt-shnoe a window it is possible to cause a method of this library, it will do something in a background (at this time it is possible to work with a window, it "does not hang"), and on termination of object of library causes some slot in a class of this window, in advance connected to an appropriate signal. A question - and how it to combine? I will accept layout in a flow of a certain "own" cycle of messages which start up to itself is twisted (actually at me there is a whole class inherited from QObject in which all it and happens). Let the cycle of messages causes as required slots of the same class. Which, working with the first library, will initiate again operation of the second and to return control in a cycle of messages. Simultaneous operation of both libraries even is not necessary. To allocate the code in different flows it would not be desirable, in the first it complicates logic, in the second it would not be desirable to anchor the code to windows and gui generally. A question - whether it is possible in Qt to organize the cycle of messages and how it to make?