Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.5.0
-
None
-
-
fd565750f (dev), dd7323918 (6.5)
Description
I have a header file with a class that needs moc. The class has a QOffscreenSurface member, so I need to #include <QtGui/QOffscreenSurface>.
In this case, moc generates a source file that doesn't compile:
fatal error: QScreen: No such file or directory
It's because the Q_MOC_INCLUDE(<QScreen>) annotation in qoffscreensurface.h has an invalid path (should be QtGui/QScreen)
Attachments
For Gerrit Dashboard: QTBUG-113619 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
477963,2 | qoffscreensurface.h: Add module to Q_MOC_INCLUDE | dev | qt/qtbase | Status: MERGED | +2 | 0 |
478173,2 | qoffscreensurface.h: Add module to Q_MOC_INCLUDE | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |