i seem to be having an error with QJsonObject even tho all my friends who used the same code have it working
-
here are the errors im getting
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:819: error: aggregate 'QJsonObject emailData' has incomplete type and cannot be defined
....\gemployes.cpp: In member function 'void GEmployes::envoyerMailViaBrevo(QString, QString, QString)':
....\gemployes.cpp:819:17: error: aggregate 'QJsonObject emailData' has incomplete type and cannot be defined
819 | QJsonObject emailData;
| ^~~~~~~~~
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:820: error: aggregate 'QJsonObject sender' has incomplete type and cannot be defined
....\gemployes.cpp:820:17: error: aggregate 'QJsonObject sender' has incomplete type and cannot be defined
820 | QJsonObject sender;
| ^~~~~~
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:825: error: aggregate 'QJsonObject toRecipient' has incomplete type and cannot be defined
....\gemployes.cpp:825:17: error: aggregate 'QJsonObject toRecipient' has incomplete type and cannot be defined
825 | QJsonObject toRecipient;
| ^~~~~~~~~~~
:-1: error: [Makefile.Debug:2056: debug/gemployes.o] Error 1
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:819: error: Variable has incomplete type 'QJsonObject'
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:820: error: Variable has incomplete type 'QJsonObject'
C:\Users\feral\Downloads\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\projetcpp-2A3-smart-football-Fatma_omar_yassine_hamza\gemployes.cpp:825: error: Variable has incomplete type 'QJsonObject'
mind you the code has worked in 4 other laptops -
Include the QJsonObject header in your source