Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将 QChar 传递给需要 a 的函数wchar_t:
wchar_t
void myFunc(wchar_t wch);
试图通过QChar失败并出现错误:
QChar
error: C2664: 'myFunc' : cannot convert parameter 1 from 'QChar' to 'wchar_t'
即使在我提出问题时也找到了答案,我需要使用QChar::unicode()。
wchar_t wch = qch.unicode();