There was a question from a beginner. I want to perform my functions - read and parse the file. Wrote the code:
int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); MyServer server; f1(); f2(); return a.exec(); } When I execute this code, the functions work only 1 time, then the transition to exec follows, and everything stops. In this case, an instance of the class MyServer (works with a socket) - works and accepts data, writes them to a file. And I need them to run cyclically.
How to be? I feel my functions need to be arranged in a class and use it, but maybe there is some other way?