Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在创建主窗体时执行代码?说,我必须调用一个简单 MessageBox(0, L"Hello World!", L"Debug", MB_OK)的,它将在表单创建之后但在它出现在屏幕上之前调用。提前致谢。
MessageBox(0, L"Hello World!", L"Debug", MB_OK)
编写一个继承自这种形式的新类(??)。然后,在类的构造函数上,执行:QWidgetQMainWindow
QWidget
QMainWindow