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.
下面给出的代码是MOC在Qt中生成的代码。
常量 QMetaObject MainWindow::staticMetaObject = { { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow, qt_meta_data_MainWindow, 0 } };
为什么有两个连续的大括号,中间没有任何声明?另外,声明是什么意思?只是逗号分隔的变量意味着什么?
我认为它正在初始化结构(内部大括号)的列表(外部大括号)。