How can I detect a hang in QEventLoop?
问题 I am not sure if the title of my question is formulated correctly, so to explain what I really mean, consider the following example: I create a QApplication and a QWidget with a QPushButton on it. Then I attach a handler to the click signal from the button that looks like this: void MyWidget::on_pushButton_clicked(){ //Never return while(true); } Finally I start the event loop for the application and when I run the program and the window shows up click the button. This will in my case stall