blob: 2682dd9d252f6ea422ccce7f123e9337a2648303 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include"manualinclude.h"
#include<QCoreApplication>
#include<QObject>
ManualInclude::ManualInclude() {
}
void ManualInclude::myslot(void) {
;
}
class MocClass : public QObject {
Q_OBJECT
};
int main(int argc, char **argv) {
ManualInclude mi;
MocClass mc;
QObject::connect(&mi, SIGNAL(mysignal(void)),
&mi, SLOT(myslot(void)));
emit mi.mysignal();
return 0;
}
#include"manualinclude.moc"
|