will the use of QVariant help.
i tried using the following
#include <QtGui>
#include <QMetaType>
#include <QtGui>
#include <QMetaType>
To copy to clipboard, switch view to plain text mode
struct cin
{
char *ue;
char *pd;
};
Q_DECLARE_METATYPE(cin);
struct cin ud;
ud.usrname=lineedit->text().toAscii().data();
ud.usrname=lineedit1->text().toAscii().data();
b.setValue(ud);
cin ud1 = b.value<cin>();
statuslabel->setText(ud1.ue);
struct cin
{
char *ue;
char *pd;
};
Q_DECLARE_METATYPE(cin);
QVariant b;
struct cin ud;
ud.usrname=lineedit->text().toAscii().data();
ud.usrname=lineedit1->text().toAscii().data();
b.setValue(ud);
cin ud1 = b.value<cin>();
statuslabel->setText(ud1.ue);
To copy to clipboard, switch view to plain text mode
but i am getting the following error.
error: expected primary-expression before "template"
error: expected `;' before "template"
error: no matching function for call to `QVariant::setValue(dslgimpl::senddata()::cin&)'
error
: no matching function
for call to `
QVariant::value()'
error: expected primary-expression before "template"
error: expected `;' before "template"
error: no matching function for call to `QVariant::setValue(dslgimpl::senddata()::cin&)'
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..
Bookmarks