# Qt线程专题 **Repository Path**: xixixing/qt-thread-topic ## Basic Information - **Project Name**: Qt线程专题 - **Description**: Qt线程专题 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-17 - **Last Updated**: 2022-06-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Qt线程专题 ## 线程中断 使用下述函数: requestInterruption() 发起中断请求 isInterruptionRequested() 是否发起中断请求 wait() 等待中断完成 isFinished() 中断是否完成 为防止崩溃,必须在wait前disconnect该线程发出的信号【推荐】。 或者在wait后使用 QApplication::processEvents()【不推荐】。 因为与该线程有关的信号可能处于挂起状态,中断时很有可能崩溃。 #### 目录介绍 ch9来自于《Qt5开发实战》书籍,略有修改。