M
M
Mars362020-12-14 14:32:43
Qt
Mars36, 2020-12-14 14:32:43

How to implement command line in QT console application without threads?

I want to implement a command line in a server-side console application without threads. If you use an infinite loop in the application itself, then the application remains in it and does not process slots and signals when a client connects, for example. I couldn't find any tools in QT itself. The only option I found is to make a separate class inherit from QThread? Making a separate class only for processing command input is somehow bold in my opinion.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2020-12-23
@Mars36

https://gist.github.com/gjorquera/2576569
https://github.com/juangburgos/QConsoleListener

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question