,我注意到QLabel::contextMenuEvent()使用了这种(非阻塞)样式:menu->setAttribute(Qt::WA_DeleteOnClose);menu->popup(event->globalPos());QMenu *menu = ...
// Blocking// Or before menu->exec
从中,标志参数具有与Unix 相同的含义 Enables nonblocking operation; if the operationwell as other processes that hold file descriptors referring
to the same open file description.我读到这意味着,我可以通过socket.MSG_DONTWAIT获得非阻塞操作,只对那个电话。可能这是不正确的-我也可以读