I'm trying to import a struct pointer that was create class, this struct pointer is in a public slot, I try this:
FILE WITH THE STRUCT name struct.h:
typedef struct
{
bool record;
} VIDEO;
FILE WITH THE POINTER TO BE IMPORTED test.h:
include
include "struct.h"
class Test : public QObject { Q_OBJECT
public:
explicit Test(QQmlEngine& engine, QObject* parent = nullptr);
VIDEO *_ptrVideo;
}
FILE THAT WILL IMPORT THE POINTER:
include "test.h"
*_ptrVideo->record = true;
I receive the error: Use of undeclared _ptrVideo, how can I fix this?
Aucun commentaire:
Enregistrer un commentaire