will the use of QVariant help.

i tried using the following
Qt Code:
  1. #include <QtGui>
  2. #include <QMetaType>
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. struct cin
  2. {
  3. char *ue;
  4. char *pd;
  5. };
  6. Q_DECLARE_METATYPE(cin);
  7. struct cin ud;
  8. ud.usrname=lineedit->text().toAscii().data();
  9. ud.usrname=lineedit1->text().toAscii().data();
  10. b.setValue(ud);
  11. cin ud1 = b.value<cin>();
  12. statuslabel->setText(ud1.ue);
To copy to clipboard, switch view to plain text mode 


but i am getting the following error.
Qt Code:
  1. error: expected primary-expression before "template"
  2. error: expected `;' before "template"
  3. error: no matching function for call to `QVariant::setValue(dslgimpl::senddata()::cin&)'
  4. error: no matching function for call to `QVariant::value()'
To copy to clipboard, switch view to plain text mode 
can anyone help me in finding the problem.

--
Thanks..