When you perform the pick operation on the entity in 3D, the result is a compilation error: invalid application of ‘sizeof’ to include type ‘qt3drender:: qpickevent’
Qt3DRender::QObjectPicker *picker = new Qt3DRender::QObjectPicker(m_ sphereEntity);
picker-> setHoverEnabled(true);
picker-> setEnabled(true);
connect(picker, & Qt3DRender::QObjectPicker::clicked, this, & SceneModifier::mouseClicked); // Error line
Slot function prototype: void mouseClick (qt3drender:: qpickevent * EVT)
Try to try to go, the result is that the header file does not contain, including the header file can
#include <QPickEvent>
The QPickEvent class holds information when an object is picked.
This is received as a parameter in most of the QObjectPicker component signals when picking succeeds.
Similar Posts:
- flutter_cupertino_date_picker Compile Error: The type ‘DiagnosticableMixin’ can’t be mixed in
- Iview requested an error solution after clearing the Date-picker component
- How to Use Array.prototype.slice.call(arguments)
- About multi_ image_ Error reporting for picker
- uniapp Use picker Error: Error in render: “TypeError: Cannot read property ‘XXX’ of undefined”
- [How to Solve] expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__
- fatal error C1010: unexpected end of file while…
- [Solved] include(../template/header.html): failed to open stream: No such file or dir…
- How to Solve JavaScript Error: replaceAll is not a function
- [Solved] Webassembly cannot be opened in IOS 12 and below and debug error: referenceerror: cant find variable: globalthis