如何在QT中实现PostMessage()函数? [英] How to implement PostMessage() function in QT??
本文介绍了如何在QT中实现PostMessage()函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在QT中实现PostMessage()函数?请提供一些示例示例????
How to implement PostMessage() function in QT?? Please give some sample examples????
推荐答案
有两种方法:
QCoreApplication:postEvent()
或
QTimer::singleShot()
这里显示了其他方法:
http://www.questionhub.com/StackOverflow/3937152 [
There are a couple of ways:
QCoreApplication:postEvent()
or
QTimer::singleShot()
There are other approaches shown here:
http://www.questionhub.com/StackOverflow/3937152[^]
I used google to find this - you can too.
这篇关于如何在QT中实现PostMessage()函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文