问:Qt 对话框标题按钮的“?”号按钮的点击事件是哪个?
答:
#include "windows.h" bool Dialog::winEvent(MSG *message, long *result) { if (message->message == WM_SYSCOMMAND && message->wParam == SC_CONTEXTHELP) QMessageBox::information(this, "提示", "帮助,以下内容省略..."); return false; }