Qt Dev - QString Constructor


pmprog

DNF (Did Not Finish)
Joined
Apr 25, 2011
Messages
4,150
I'm getting the following error



Code:
D:\WIP\SecDB-build-desktop\..\SecDB\Crypto\twofish_ex.cpp:16: error: C2664: 'QString::QString(const QChar *)' : cannot convert parameter 1 from 'QByteArray *' to 'const QChar *'

Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast




But I don't understand why it's trying to use QChar*, when QString has the following constructor...





Code:
QString::QString ( const QByteArray & ba )


So what am I missing?


Cheers


Nevermind. I found using ->data() on my QByteArray variable worked
 
Last edited by a moderator:
Back
Top