Start process with QProcess on windows error: “Timers can only be used with threads started with QThread”

后端 未结 1 1023
后悔当初
后悔当初 2021-01-20 16:33

I have a minimal example i am trying to get working. The end goal is to be able to communicate some information to a program that is waiting on a \"cin\" call. I guess that

相关标签:
1条回答
  • 2021-01-20 17:10

    In rare cases you will have a Qt-app without QApplication or QCoreApplication. They start event loop, required for timers, events, signals/slots.

    A console XML-parser could be such kind of event-less application.

    Take a look e.g. here for a minimal QtCoreApplication app: How do I create a simple Qt console application in C++?

    Start your process within a subclassed QWidget or QObject.

    0 讨论(0)
提交回复
热议问题