Hello,<div>I was making a test class for Backend class and found this error</div><div>When i searched on the net about this , I found that the class is private and the constructor cant be used as such</div><div>But i had used the QObject this way a lot of time.</div>
<div>Can you please tell me where's the error?</div><div><br></div><div>Here is m compile output</div><div><br></div><div><div>In file included from /home/puneet/puneet/office/alkimia/payment/backend/backendtest.cpp:4:</div>
<div>/usr/include/qt4/QtCore/qobject.h: In copy constructor ‘Backend::Backend(const Backend&)’:</div><div>/usr/include/qt4/QtCore/qobject.h:309: error: ‘QObject::QObject(const QObject&)’ is private</div><div>/home/puneet/puneet/office/alkimia/payment/backend/backend.h:49: error: within this context</div>
<div>/home/puneet/puneet/office/alkimia/payment/backend/backendtest.cpp: In member function ‘void BackendTest::test_initialization()’:</div><div>/home/puneet/puneet/office/alkimia/payment/backend/backendtest.cpp:25: note: synthesized method ‘Backend::Backend(const Backend&)’ first required here </div>
</div><div><br></div><div>I have updated the code in the plaground/office/alkimia/payment/</div><div><br></div><div>Thank you</div><div><br></div><div>Regards,</div><div>Puneet<br>-- <br><font size="2"><span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif"><div>
<span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif">-----------------------------------------------------------------------</span></div>Puneet Goyal<br>Student of B. Tech. III Year (Software Engineering)<br>
Delhi Technological University, Delhi</span></font><div><font size="2"><span style="border-collapse:collapse;font-family:arial,helvetica,sans-serif">-----------------------------------------------------------------------</span></font></div>
<br>
</div>