btn->setAttribute(Qt::WA_TransparentForMouseEvents, true);
qt 让某个控件不接受鼠标事件以传递到父控件
最新推荐文章于 2024-02-19 15:40:29 发布
btn->setAttribute(Qt::WA_TransparentForMouseEvents, true);