
Originally Posted by
SixDegrees
Qt isn't syntactically different in C#; it is written and works exactly the same way as it does anywhere else.
It isn't the language that's at fault.
OK so let me know why this code doesn't work:
//fp data
QByteArray b
= user
->fingerData
();
//<-- return a reference to a QByteArray containing the fingerprint data
QVariantList fingerData;
fingerData.append(v);
//fp data
QByteArray b = user->fingerData(); //<-- return a reference to a QByteArray containing the fingerprint data
QVariant v(b);
QVariantList fingerData;
fingerData.append(v);
To copy to clipboard, switch view to plain text mode
I need to convert QByteArray b to QVariantList fingerData.
I'm sure I'm doing some mistake but I don't know which one. Instead in C# I don't have to convert anything.
I prefere C++ to C# but I can not loose 1 week to discover how to do a conversion.
Regards
Bookmarks