开发者

Qt webkit programming, what's the corresponding Qt data types to Javascript data types?

I am currently working on this topic: http://doc.qt.io/qt-5/qtwebkit-bridge.html

I have a C++ class that maps a Javascript object and I want my C++ function to return any Javascript data types, such as object, array, string, number etc.

What's the corresponding Qt data types to JS data types?

e.g. (I don't know if this mapping is correct)

Javascript data type                 Qt data type

string                                QString
array                                 Q开发者_如何学GoList, QVariantList
.....

I just want to know how the data type maps to each other.


You might find some clues here:

http://doc.qt.io/qt-5/qscriptvalue.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜