Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.6
-
None
-
-
ac001bef7 (dev), d2f663eeb (6.7)
Description
/Users/torarne/build/qt/6.x/qtdeclarative/src/quick/Quick_autogen/include/moc_qquickwindow.cpp:764:17: error: too few arguments to function call, single argument 'arg' was not specified t->xChanged(); ~~~~~~~~~~~ ^ /Users/torarne/build/qt/6.x/qtbase/include/QtGui/../../../../../../dev/qt/qtbase/src/gui/kernel/qwindow.h:301:10: note: 'xChanged' declared here void xChanged(int arg); ^
Caused by code at end of Generator::generateCode() in moc:
if (!cdef->nonClassSignalList.isEmpty()) { fprintf(out, "// If you get a compile error in this function it can be because either\n"); fprintf(out, "// a) You are using a NOTIFY signal that does not exist. Fix it.\n"); fprintf(out, "// b) You are using a NOTIFY signal that does exist (in a parent class) but has a non-empty parameter list. This is a moc limitation.\n"); fprintf(out, "[[maybe_unused]] static void checkNotifySignalValidity_%s(%s *t) {\n", qualifiedClassNameIdentifier.constData(), cdef->qualified.constData()); for (const QByteArray &nonClassSignal : std::as_const(cdef->nonClassSignalList)) fprintf(out, " t->%s();\n", nonClassSignal.constData()); fprintf(out, "}\n"); }
Attachments
For Gerrit Dashboard: QTBUG-115989 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
495900,6 | moc/QMetaProperty: Remove limitation on non-own-class notify signals | dev | qt/qtbase | Status: MERGED | +2 | 0 |
534640,2 | moc/QMetaProperty: Remove limitation on non-own-class notify signals | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |